sdl2/generated/lib_sdl_thread library

Functions

sdlCreateThread(Pointer<NativeFunction<SdlThreadFunction>> fn, String? name, Pointer<NativeType> data, Pointer<NativeFunction<PfnSdlCurrentBeginThread>> pfnBeginThread, Pointer<NativeFunction<PfnSdlCurrentEndThread>> pfnEndThread) Pointer<SdlThread>
extern DECLSPEC SDL_Thread *SDLCALL SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
sdlCreateThreadWithStackSize(Pointer<NativeFunction<SdlThreadFunction>> fn, String? name, int stacksize, Pointer<NativeType> data, Pointer<NativeFunction<PfnSdlCurrentBeginThread>> pfnBeginThread, Pointer<NativeFunction<PfnSdlCurrentEndThread>> pfnEndThread) Pointer<SdlThread>
extern DECLSPEC SDL_Thread *SDLCALL SDL_CreateThreadWithStackSize(SDL_ThreadFunction fn, const char *name, const size_t stacksize, void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
sdlDetachThread(Pointer<SdlThread> thread) → void
Let a thread clean up on exit without intervention.
sdlGetThreadId(Pointer<SdlThread> thread) int
Get the thread identifier for the specified thread.
sdlGetThreadName(Pointer<SdlThread> thread) String?
Get the thread name as it was specified in SDL_CreateThread().
sdlSetThreadPriority(int priority) int
Set the priority for the current thread.
sdlThreadId() int
Get the thread identifier for the current thread.
sdlTlsCleanup() → void
Cleanup all TLS data for this thread.
sdlTlsCreate() int
Create a piece of thread-local storage.
sdlTlsGet(int id) Pointer<NativeType>
Get the current thread's value associated with a thread local storage ID.
sdlTlsSet(int id, Pointer<NativeType> value, Pointer<NativeType> deor) int
Set the current thread's value associated with a thread local storage ID.
sdlWaitThread(Pointer<SdlThread> thread, Pointer<Int32> status) → void
Wait for a thread to finish.