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

@@ -96,7 +96,7 @@ int SDL_WaitSemaphoreTimeoutNS(SDL_Semaphore *sem, Sint64 timeoutNS)
return 0;
}
if (timeoutNS != SDL_MUTEX_MAXWAIT) {
if (timeoutNS != -1) { // -1 == wait indefinitely.
SetTimerAlarm(&alarm, MSec2TimerBusClock(SDL_NS_TO_MS(timeoutNS)), &usercb, (void *)GetThreadId());
}