include: More \threadsafety documentation.

Reference Issue #7140.
This commit is contained in:
Ryan C. Gordon
2026-02-20 10:45:39 -05:00
parent c728e2f044
commit 1223767b2c
8 changed files with 48 additions and 0 deletions

View File

@@ -93,6 +93,8 @@ typedef enum SDL_PowerState
* \returns the current battery state or `SDL_POWERSTATE_ERROR` on failure;
* call SDL_GetError() for more information.
*
* \threadsafety This function is not thread safe.
*
* \since This function is available since SDL 3.2.0.
*/
extern SDL_DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *seconds, int *percent);