= Thread Synchronization Primitives = '''Include File(s):''' [https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_mutex.h SDL_mutex.h], [https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_thread.h SDL_thread.h] == Introduction == Functions in this group provide thread synchronization primitives for multi-threaded programing. There are three primitives available in SDL: * Mutex * Semaphore * Condition Variable The SDL mutex is implemented as a recursive mutex so you can nest lock and unlock calls to the same mutex. == Functions == <> * [[SDL_CondBroadcast]] * [[SDL_CondSignal]] * [[SDL_CondWait]] * [[SDL_CondWaitTimeout]] * [[SDL_CreateCond]] * [[SDL_CreateMutex]] * [[SDL_CreateSemaphore]] * [[SDL_DestroyCond]] * [[SDL_DestroyMutex]] * [[SDL_DestroySemaphore]] * [[SDL_LockMutex]] * [[SDL_SemPost]] * [[SDL_SemTryWait]] * [[SDL_SemValue]] * [[SDL_SemWait]] * [[SDL_SemWaitTimeout]] * [[SDL_TryLockMutex]] * [[SDL_UnlockMutex]] ---- CategoryCategory