Method
MaplibreNativeFfiRenderSessionbarrier_async
Declaration [src]
void
maplibre_native_ffi_render_session_barrier_async (
MaplibreNativeFfiRenderSession* self,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Ends the session’s pending frame demands and waits for its earlier work.
Frame demands that haven’t started, including those that wait for a map
update, finish with MAPLIBRE_NATIVE_FFI_RENDER_RESULT_NO_UPDATE.
See mln_render_session_barrier in the
C API reference.
It fails with these errors:
MAPLIBRE_NATIVE_FFI_ERROR_TARGET_LOSTwhen the session loses its target before the barrier runs.
This method completes asynchronously. Use maplibre_native_ffi_render_session_barrier_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
callback-
Type:
GAsyncReadyCallbackThe callback to call when the call finishes.
The argument can be NULL. user_data-
Type:
gpointerThe data to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.