thread: code style

This commit is contained in:
pionere authored and Sam Lantinga committed 2022-11-29 08:44:10 -08:00
1 parent 38c281fbc0
commit 461a38ff1a
12 files changed
+35 -38

No files matched your search

+2 -2
View File
@@ -72,7 +72,7 @@ static void WaitAll(SDL_sem *sem)
RSemaphore sema;
sema.SetHandle(sem->handle);
sema.Wait();
while(sem->count < 0) {
while (sem->count < 0) {
sema.Wait();
}
}
@@ -94,7 +94,7 @@ SDL_CreateSemaphore(Uint32 initial_value)
void
SDL_DestroySemaphore(SDL_sem * sem)
{
if (sem) {
if (sem != NULL) {
RSemaphore sema;
sema.SetHandle(sem->handle);
sema.Signal(sema.Count());