sdlGetGdkTaskQueue function
Gets a reference to the global async task queue handle for GDK, initializing if needed.
Once you are done with the task queue, you should call XTaskQueueCloseHandle to reduce the reference count to avoid a resource leak.
\param outTaskQueue a pointer to be filled in with task queue handle. \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC bool SDLCALL SDL_GetGDKTaskQueue(XTaskQueueHandle *outTaskQueue)
Implementation
bool sdlGetGdkTaskQueue(Pointer<XTaskQueueHandle> outTaskQueue) {
final sdlGetGdkTaskQueueLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<XTaskQueueHandle> outTaskQueue),
int Function(
Pointer<XTaskQueueHandle> outTaskQueue)>('SDL_GetGDKTaskQueue');
return sdlGetGdkTaskQueueLookupFunction(outTaskQueue) == 1;
}