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 committed 2023-04-28 12:08:33 -07:00
1 parent 170c410d35
commit 61c0c009ab
45 files changed
+458 -362

No files matched your search

+2 -2
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);