Method

MaplibreNativeFfiRenderSessionservice_driver_work

Declaration [src]

gboolean
maplibre_native_ffi_render_session_service_driver_work (
  MaplibreNativeFfiRenderSession* self
  GError** error
)

Description [src]

Runs the session’s ready graphics work on your graphics thread.

Use it with MAPLIBRE_NATIVE_FFI_RENDER_DRIVER_CALLER_GRAPHICS_THREAD, and call it from the same thread every time. Call it each time MaplibreNativeFfiRenderSessionAttachOptions:driver-work-wake is called, even while you demand no frames, until a detach, release, or disposal of the session finishes. It returns once no work is ready.

It accepts a released or disposed session until that release or disposal finishes.

See mln_render_session_service_driver_work in the C API reference.

Return value

Type: gboolean

TRUE on success, or FALSE with error set.