Updated documentation to reflect that SDL_GetHint() is thread-safe

This was fixed at some point, so this updates the documentation to match.

Fixes https://github.com/libsdl-org/SDL/issues/13932
This commit is contained in:
Sam Lantinga
2025-09-14 11:28:45 -07:00
parent 5a2faaee29
commit 402fa9434d

View File

@@ -4558,12 +4558,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_ResetHints(void);
* \param name the hint to query. * \param name the hint to query.
* \returns the string value of a hint or NULL if the hint isn't set. * \returns the string value of a hint or NULL if the hint isn't set.
* *
* \threadsafety It is safe to call this function from any thread, however the * \threadsafety It is safe to call this function from any thread.
* return value only remains valid until the hint is changed; if
* another thread might do so, the app should supply locks
* and/or make a copy of the string. Note that using a hint
* callback instead is always thread-safe, as SDL holds a lock
* on the thread subsystem during the callback.
* *
* \since This function is available since SDL 3.2.0. * \since This function is available since SDL 3.2.0.
* *