#pragma section-numbers off #pragma camelcase off = SDL_DestroySemaphore = Use this function to destroy a semaphore. <> == Syntax == {{{#!highlight cpp void SDL_DestroySemaphore(SDL_sem* sem) }}} == Function Parameters == ||'''sem'''||the semaphore to destroy|| == Code Examples == <> == Remarks == It is not safe to destroy a semaphore if there are threads currently waiting on it. == Related Functions == .[[SDL_CreateSemaphore]] .[[SDL_SemPost]] .[[SDL_SemTryWait]] .[[SDL_SemValue]] .[[SDL_SemWait]] .[[SDL_SemWaitTimeout]] ---- [[CategoryAPI]], [[CategoryMutex]]