sdl3/sdl_thread
library
Functions
-
sdlCleanupTls()
→ void
thread
-
Cleanup all TLS data for this thread.
-
sdlCreateThread(Pointer<NativeFunction<SdlThreadFunction>> fn, String? name, Pointer<Void> data)
→ Pointer<SdlThread>
thread
-
Create a new thread with a default stack size.
-
sdlCreateThreadRuntime(Pointer<NativeFunction<SdlThreadFunction>> fn, String? name, Pointer<Void> data, Pointer<NativeFunction<SdlFunctionPointer>> pfnBeginThread, Pointer<NativeFunction<SdlFunctionPointer>> pfnEndThread)
→ Pointer<SdlThread>
thread
-
The actual entry point for SDL_CreateThread.
-
sdlCreateThreadWithProperties(int props)
→ Pointer<SdlThread>
thread
-
Create a new thread with with the specified properties.
-
sdlCreateThreadWithPropertiesRuntime(int props, Pointer<NativeFunction<SdlFunctionPointer>> pfnBeginThread, Pointer<NativeFunction<SdlFunctionPointer>> pfnEndThread)
→ Pointer<SdlThread>
thread
-
The actual entry point for SDL_CreateThreadWithProperties.
-
sdlDetachThread(Pointer<SdlThread> thread)
→ void
thread
-
Let a thread clean up on exit without intervention.
-
sdlGetCurrentThreadId()
→ int
thread
-
Get the thread identifier for the current thread.
-
sdlGetThreadId(Pointer<SdlThread> thread)
→ int
thread
-
Get the thread identifier for the specified thread.
-
sdlGetThreadName(Pointer<SdlThread> thread)
→ String?
thread
-
Get the thread name as it was specified in SDL_CreateThread().
-
sdlGetThreadState(Pointer<SdlThread> thread)
→ int
thread
-
Get the current state of a thread.
-
sdlGetTls(Pointer<SdlAtomicInt> id)
→ Pointer<Void>
thread
-
Get the current thread's value associated with a thread local storage ID.
-
sdlSetCurrentThreadPriority(int priority)
→ bool
thread
-
Set the priority for the current thread.
-
sdlSetTls(Pointer<SdlAtomicInt> id, Pointer<Void> value, SdlTlsDeorCallback deor)
→ bool
thread
-
Set the current thread's value associated with a thread local storage ID.
-
sdlWaitThread(Pointer<SdlThread> thread, Pointer<Int32> status)
→ void
thread
-
Wait for a thread to finish.