sdl3/generated/lib_sdl_thread library

Functions

sdlCleanupTls() → void
Cleanup all TLS data for this thread.
sdlCreateThread(Pointer<NativeFunction<SdlThreadFunction>> fn, String? name, Pointer<NativeType> data) Pointer<SdlThread>
Create a new thread with a default stack size.
sdlCreateThreadRuntime(Pointer<NativeFunction<SdlThreadFunction>> fn, String? name, Pointer<NativeType> data, Pointer<NativeType> pfnBeginThread, Pointer<NativeType> pfnEndThread) Pointer<SdlThread>
The actual entry point for SDL_CreateThread.
sdlCreateThreadWithProperties(int props) Pointer<SdlThread>
Create a new thread with with the specified properties.
sdlCreateThreadWithPropertiesRuntime(int props, Pointer<NativeType> pfnBeginThread, Pointer<NativeType> pfnEndThread) Pointer<SdlThread>
The actual entry point for SDL_CreateThreadWithProperties.
sdlDetachThread(Pointer<SdlThread> thread) → void
Let a thread clean up on exit without intervention.
sdlGetCurrentThreadId() int
Get the thread identifier for the current thread.
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().
sdlGetTls(Pointer<SdlAtomicInt> id) Pointer<NativeType>
Get the current thread's value associated with a thread local storage ID.
sdlSetCurrentThreadPriority(int priority) bool
Set the priority for the current thread.
sdlSetTls(Pointer<SdlAtomicInt> id, Pointer<NativeType> value, Pointer<NativeType> deor) bool
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.