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

@@ -707,6 +707,8 @@ The following functions have been renamed:
## SDL_mutex.h
SDL_MUTEX_MAXWAIT has been removed; it suggested there was a maximum timeout one could outlive, instead of an infinite wait. Instead, pass a -1 to functions that accepted this symbol.
SDL_LockMutex and SDL_UnlockMutex now return void; if the mutex is valid (including being a NULL pointer, which returns immediately), these functions never fail. If the mutex is invalid or the caller does something illegal, like unlock another thread's mutex, this is considered undefined behavior.
The following functions have been renamed: