MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
wake.h File Reference

Go to the source code of this file.

Data Structures

struct  mln_wake

Typedefs

typedef void(*) mln_wake_callback(void *user_data)
typedef struct mln_wake mln_wake

Detailed Description

Learn when the library has work ready for the caller.

Typedef Documentation

◆ mln_wake

typedef struct mln_wake mln_wake

A callback that tells the caller when work is ready.

◆ mln_wake_callback

typedef void(*) mln_wake_callback(void *user_data)

Tells the caller that work is ready for it.

One call can stand for several pieces of ready work, so take all of it each time.

Threads: Can run on any thread, including the caller's own thread during a library call. Return quickly and don't block.