From a646dc89e5c4f44e8c714fa777dd73bcea84fafb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 6 Feb 2025 10:44:07 -0800 Subject: [PATCH] Note that SDL_GUIDToString() and SDL_StringToGUID() are thread-safe. --- include/SDL3/SDL_guid.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/SDL3/SDL_guid.h b/include/SDL3/SDL_guid.h index e2f32ffc9b..312c42c031 100644 --- a/include/SDL3/SDL_guid.h +++ b/include/SDL3/SDL_guid.h @@ -71,6 +71,8 @@ typedef struct SDL_GUID { * \param pszGUID buffer in which to write the ASCII string. * \param cbGUID the size of pszGUID, should be at least 33 bytes. * + * \threadsafety It is safe to call this function from any thread. + * * \since This function is available since SDL 3.2.0. * * \sa SDL_StringToGUID @@ -87,6 +89,8 @@ extern SDL_DECLSPEC void SDLCALL SDL_GUIDToString(SDL_GUID guid, char *pszGUID, * \param pchGUID string containing an ASCII representation of a GUID. * \returns a SDL_GUID structure. * + * \threadsafety It is safe to call this function from any thread. + * * \since This function is available since SDL 3.2.0. * * \sa SDL_GUIDToString