sdl3/generated/lib_sdl_mutex library

Functions

sdlBroadcastCondition(Pointer<SdlCondition> cond) → void
Restart all threads that are waiting on the condition variable.
sdlCreateCondition() Pointer<SdlCondition>
Create a condition variable.
sdlCreateMutex() Pointer<SdlMutex>
Create a new mutex.
sdlCreateRwLock() Pointer<SdlRwLock>
Create a new read/write lock.
sdlCreateSemaphore(int initialValue) Pointer<SdlSemaphore>
Create a semaphore.
sdlDestroyCondition(Pointer<SdlCondition> cond) → void
Destroy a condition variable.
sdlDestroyMutex(Pointer<SdlMutex> mutex) → void
Destroy a mutex created with SDL_CreateMutex().
sdlDestroyRwLock(Pointer<SdlRwLock> rwlock) → void
Destroy a read/write lock created with SDL_CreateRWLock().
sdlDestroySemaphore(Pointer<SdlSemaphore> sem) → void
Destroy a semaphore.
sdlGetSemaphoreValue(Pointer<SdlSemaphore> sem) int
Get the current value of a semaphore.
sdlLockMutex(Pointer<NativeType> arg0) → void
Lock the mutex.
sdlLockRwLockForReading(Pointer<NativeType> arg0) → void
Lock the read/write lock for read only operations.
sdlLockRwLockForWriting(Pointer<NativeType> arg0) → void
Lock the read/write lock for write operations.
sdlSetInitialized(Pointer<SdlInitState> state, bool initialized) → void
Finish an initialization state transition.
sdlShouldInit(Pointer<SdlInitState> state) bool
Return whether initialization should be done.
sdlShouldQuit(Pointer<SdlInitState> state) bool
Return whether cleanup should be done.
sdlSignalCondition(Pointer<SdlCondition> cond) → void
Restart one of the threads that are waiting on the condition variable.
sdlSignalSemaphore(Pointer<SdlSemaphore> sem) → void
Atomically increment a semaphore's value and wake waiting threads.
sdlTryLockMutex(Pointer<NativeType> arg0, Pointer<NativeType> arg1) bool
Try to lock a mutex without blocking.
sdlTryLockRwLockForReading(Pointer<NativeType> arg0, Pointer<NativeType> arg1) bool
Try to lock a read/write lock for reading without blocking.
sdlTryLockRwLockForWriting(Pointer<NativeType> arg0, Pointer<NativeType> arg1) bool
Try to lock a read/write lock for writing without blocking.
sdlTryWaitSemaphore(Pointer<SdlSemaphore> sem) bool
See if a semaphore has a positive value and decrement it if it does.
sdlUnlockMutex(Pointer<NativeType> arg0) → void
Unlock the mutex.
sdlUnlockRwLock(Pointer<NativeType> arg0) → void
Unlock the read/write lock.
sdlWaitCondition(Pointer<SdlCondition> cond, Pointer<SdlMutex> mutex) → void
Wait until a condition variable is signaled.
sdlWaitConditionTimeout(Pointer<SdlCondition> cond, Pointer<SdlMutex> mutex, int timeoutMs) bool
Wait until a condition variable is signaled or a certain time has passed.
sdlWaitSemaphore(Pointer<SdlSemaphore> sem) → void
Wait until a semaphore has a positive value and then decrements it.
sdlWaitSemaphoreTimeout(Pointer<SdlSemaphore> sem, int timeoutMs) bool
Wait until a semaphore has a positive value and then decrements it.