Renamed SDL_PostSemaphore() to SDL_SignalSemphore()

This commit is contained in:
Sam Lantinga committed 2024-07-24 13:37:40 -07:00
1 parent 27f86cbe18
commit a7c0192017
31 files changed
+66 -66

No files matched your search

+2 -2
View File
@@ -243,7 +243,7 @@ void SDL_QuitTimers(void)
if (SDL_AtomicCompareAndSwap(&data->active, 1, 0)) { /* active? Move to inactive. */
/* Shutdown the timer thread */
if (data->thread) {
SDL_PostSemaphore(data->sem);
SDL_SignalSemaphore(data->sem);
SDL_WaitThread(data->thread, NULL);
data->thread = NULL;
}
@@ -334,7 +334,7 @@ static SDL_TimerID SDL_CreateTimer(Uint64 interval, SDL_TimerCallback callback_m
SDL_UnlockSpinlock(&data->lock);
/* Wake up the timer thread if necessary */
SDL_PostSemaphore(data->sem);
SDL_SignalSemaphore(data->sem);
return entry->timerID;
}