Clarified SDL property thread-safety information

This commit is contained in:
Sam Lantinga 2023-10-18 22:17:02 -07:00
parent 4fa821cb3e
commit 3c8edeb79b

View file

@ -121,8 +121,7 @@ extern DECLSPEC int SDLCALL SDL_SetProperty(SDL_PropertiesID props, const char *
* *
* \threadsafety It is safe to call this function from any thread, although * \threadsafety It is safe to call this function from any thread, although
* the data returned is not protected and could potentially be * the data returned is not protected and could potentially be
* freed if you call SDL_SetProperty() on this set of properties * freed if you call SDL_SetProperty() or SDL_ClearProperty() on these properties from another thread. If you
* or destroy this set of properties from another thread. If you
* need to avoid this, use SDL_LockProperties() and * need to avoid this, use SDL_LockProperties() and
* SDL_UnlockProperties(). * SDL_UnlockProperties().
* *
@ -156,8 +155,8 @@ extern DECLSPEC int SDLCALL SDL_ClearProperty(SDL_PropertiesID props, const char
* *
* \param props the properties to destroy * \param props the properties to destroy
* *
* \threadsafety This function should not be called while other threads might * \threadsafety This function should not be called while these properties are locked or other threads might
* be setting or getting values from this set of properties. * be setting or getting values from these properties.
* *
* \since This function is available since SDL 3.0.0. * \since This function is available since SDL 3.0.0.
* *