|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
Go to the source code of this file.
Data Structures | |
| struct | mln_delivery_queue_options |
Typedefs | |
| typedef struct mln_delivery_queue_options | mln_delivery_queue_options |
Functions | |
| mln_status | mln_delivery_queue_create (const mln_delivery_queue_options *options, mln_delivery_queue *out_queue, mln_diagnostic *out_diagnostic) |
| void | mln_delivery_queue_release (mln_delivery_queue queue) |
| mln_status | mln_delivery_queue_dispatch (mln_delivery_queue queue, mln_diagnostic *out_diagnostic) |
Run callbacks on a thread that the caller chooses.
| typedef struct mln_delivery_queue_options mln_delivery_queue_options |
Options for mln_delivery_queue_create().
| mln_status mln_delivery_queue_create | ( | const mln_delivery_queue_options * | options, |
| mln_delivery_queue * | out_queue, | ||
| mln_diagnostic * | out_diagnostic ) |
Creates a queue that holds callback calls until mln_delivery_queue_dispatch() runs them.
| mln_status mln_delivery_queue_dispatch | ( | mln_delivery_queue | queue, |
| mln_diagnostic * | out_diagnostic ) |
Runs the calls in the queue on the calling thread.
When the queue is empty, it succeeds and runs nothing.
Returns:
| void mln_delivery_queue_release | ( | mln_delivery_queue | queue | ) |
Releases a queue.
The calls in the queue, and any that registrations would add later, never run.