Rename SDL semaphore and condition variable functions to match SDL 3.0 naming convention

Fixes https://github.com/libsdl-org/SDL/issues/7642
This commit is contained in:
Sam Lantinga 2023-04-27 20:49:54 -07:00
parent 170c410d35
commit 61c0c009ab
45 changed files with 458 additions and 362 deletions

View file

@ -121,7 +121,7 @@ static int SDLCALL adder(void *junk)
bad -= CountInc;
}
SDL_AtomicAdd(&threadsRunning, -1);
SDL_SemPost(threadDone);
SDL_PostSemaphore(threadDone);
return 0;
}
@ -141,7 +141,7 @@ static void runAdder(void)
}
while (SDL_AtomicGet(&threadsRunning) > 0) {
SDL_SemWait(threadDone);
SDL_WaitSemaphore(threadDone);
}
SDL_DestroySemaphore(threadDone);