SDL_DestroySemaphore - Destroy a semaphore.
Contents
Availability
This function is available since SDL 3.2.0.
Description
It is not safe to destroy a semaphore if there are threads currently waiting on it.
Function Parameters
sem the semaphore to destroy.
Header File
Defined in SDL3/SDL_mutex.h
Name
SDL_DestroySemaphore - Destroy a semaphore.
See Also
•(3), SDL_CreateSemaphore(3) Simple Directmedia Layer SDL 3.2.10 SDL_DestroySemaphore(3)
Synopsis
#include"SDL3/SDL.h"voidSDL_DestroySemaphore(SDL_Semaphore*sem);
