Sync SDL3 wiki -> header

This commit is contained in:
SDL Wiki Bot 2023-10-26 12:58:14 +00:00
parent 899eb0d042
commit 82f48be3ef

View file

@ -378,10 +378,10 @@ extern DECLSPEC void SDLCALL SDL_LockRWLockForWriting(SDL_RWLock *rwlock) SDL_AC
* Trying to lock for read-only access can succeed if other threads are * Trying to lock for read-only access can succeed if other threads are
* holding read-only locks, as this won't prevent access. * holding read-only locks, as this won't prevent access.
* *
* This function does not fail; if rwlock is NULL, it will return 0 immediately * This function does not fail; if rwlock is NULL, it will return 0
* having locked nothing. If rwlock is valid, this function will always * immediately having locked nothing. If rwlock is valid, this function will
* either lock the rwlock and return 0, or return SDL_RWLOCK_TIMEOUT and lock * always either lock the rwlock and return 0, or return SDL_RWLOCK_TIMEOUT
* nothing. * and lock nothing.
* *
* \param rwlock the rwlock to try to lock * \param rwlock the rwlock to try to lock
* \returns 0 or `SDL_RWLOCK_TIMEDOUT` * \returns 0 or `SDL_RWLOCK_TIMEDOUT`
@ -412,10 +412,10 @@ extern DECLSPEC int SDLCALL SDL_TryLockRWLockForReading(SDL_RWLock *rwlock) SDL_
* read-only lock. Doing so results in undefined behavior. Unlock the * read-only lock. Doing so results in undefined behavior. Unlock the
* read-only lock before requesting a write lock. * read-only lock before requesting a write lock.
* *
* This function does not fail; if rwlock is NULL, it will return 0 immediately * This function does not fail; if rwlock is NULL, it will return 0
* having locked nothing. If rwlock is valid, this function will always * immediately having locked nothing. If rwlock is valid, this function will
* either lock the rwlock and return 0, or return SDL_RWLOCK_TIMEOUT and lock * always either lock the rwlock and return 0, or return SDL_RWLOCK_TIMEOUT
* nothing. * and lock nothing.
* *
* \param rwlock the rwlock to try to lock * \param rwlock the rwlock to try to lock
* \returns 0 or `SDL_RWLOCK_TIMEDOUT` * \returns 0 or `SDL_RWLOCK_TIMEDOUT`