SDL_DestroySemaphore - Man Page

Destroy a semaphore.

Synopsis

#include <SDL3/SDL_mutex.h>

void SDL_DestroySemaphore(SDL_Semaphore *sem);

Description

It is not safe to destroy a semaphore if there are threads currently waiting on it.

Function Parameters

sem

the semaphore to destroy.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_CreateSemaphore(3)

Referenced By

SDL_CreateSemaphore(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS