mutex: Removed SDL_MUTEX_MAXWAIT.

Fixes #8436.
This commit is contained in:
Ryan C. Gordon
2023-10-26 14:21:53 -04:00
parent 82f48be3ef
commit e6116d399a
9 changed files with 13 additions and 16 deletions

View File

@@ -114,7 +114,7 @@ int SDL_WaitSemaphoreTimeoutNS(SDL_Semaphore *sem, Sint64 timeoutNS)
return SDL_MUTEX_TIMEOUT;
}
if (timeoutNS == SDL_MUTEX_MAXWAIT) {
if (timeoutNS == -1) { // -1 == wait indefinitely.
WaitAll(sem);
return 0;
}