mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-07 07:50:58 +00:00
Clarified SDL property thread-safety information
This commit is contained in:
parent
4fa821cb3e
commit
3c8edeb79b
1 changed files with 3 additions and 4 deletions
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue