@@ -89,6 +89,8 @@ extern "C" {
89
89
* doesn't implement this functionality, call SDL_GetError() for more
90
90
* information.
91
91
*
92
+ * \threadsafety It is safe to call this function from any thread.
93
+ *
92
94
* \since This function is available since SDL 3.2.0.
93
95
*
94
96
* \sa SDL_GetPrefPath
@@ -150,6 +152,8 @@ extern SDL_DECLSPEC const char * SDLCALL SDL_GetBasePath(void);
150
152
* etc.). This should be freed with SDL_free() when it is no longer
151
153
* needed.
152
154
*
155
+ * \threadsafety It is safe to call this function from any thread.
156
+ *
153
157
* \since This function is available since SDL 3.2.0.
154
158
*
155
159
* \sa SDL_GetBasePath
@@ -222,6 +226,8 @@ typedef enum SDL_Folder
222
226
* \returns either a null-terminated C string containing the full path to the
223
227
* folder, or NULL if an error happened.
224
228
*
229
+ * \threadsafety It is safe to call this function from any thread.
230
+ *
225
231
* \since This function is available since SDL 3.2.0.
226
232
*/
227
233
extern SDL_DECLSPEC const char * SDLCALL SDL_GetUserFolder (SDL_Folder folder );
@@ -289,6 +295,8 @@ typedef Uint32 SDL_GlobFlags;
289
295
* \returns true on success or false on failure; call SDL_GetError() for more
290
296
* information.
291
297
*
298
+ * \threadsafety It is safe to call this function from any thread.
299
+ *
292
300
* \since This function is available since SDL 3.2.0.
293
301
*/
294
302
extern SDL_DECLSPEC bool SDLCALL SDL_CreateDirectory (const char * path );
@@ -352,6 +360,8 @@ typedef SDL_EnumerationResult (SDLCALL *SDL_EnumerateDirectoryCallback)(void *us
352
360
* \returns true on success or false on failure; call SDL_GetError() for more
353
361
* information.
354
362
*
363
+ * \threadsafety It is safe to call this function from any thread.
364
+ *
355
365
* \since This function is available since SDL 3.2.0.
356
366
*/
357
367
extern SDL_DECLSPEC bool SDLCALL SDL_EnumerateDirectory (const char * path , SDL_EnumerateDirectoryCallback callback , void * userdata );
@@ -366,6 +376,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_EnumerateDirectory(const char *path, SDL_En
366
376
* \returns true on success or false on failure; call SDL_GetError() for more
367
377
* information.
368
378
*
379
+ * \threadsafety It is safe to call this function from any thread.
380
+ *
369
381
* \since This function is available since SDL 3.2.0.
370
382
*/
371
383
extern SDL_DECLSPEC bool SDLCALL SDL_RemovePath (const char * path );
@@ -389,6 +401,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_RemovePath(const char *path);
389
401
* \returns true on success or false on failure; call SDL_GetError() for more
390
402
* information.
391
403
*
404
+ * \threadsafety It is safe to call this function from any thread.
405
+ *
392
406
* \since This function is available since SDL 3.2.0.
393
407
*/
394
408
extern SDL_DECLSPEC bool SDLCALL SDL_RenamePath (const char * oldpath , const char * newpath );
@@ -429,6 +443,10 @@ extern SDL_DECLSPEC bool SDLCALL SDL_RenamePath(const char *oldpath, const char
429
443
* \returns true on success or false on failure; call SDL_GetError() for more
430
444
* information.
431
445
*
446
+ * \threadsafety It is safe to call this function from any thread, but this
447
+ * operation is not atomic, so the app might need to protect
448
+ * access to specific paths from other threads if appropriate.
449
+ *
432
450
* \since This function is available since SDL 3.2.0.
433
451
*/
434
452
extern SDL_DECLSPEC bool SDLCALL SDL_CopyFile (const char * oldpath , const char * newpath );
@@ -442,6 +460,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_CopyFile(const char *oldpath, const char *n
442
460
* \returns true on success or false if the file doesn't exist, or another
443
461
* failure; call SDL_GetError() for more information.
444
462
*
463
+ * \threadsafety It is safe to call this function from any thread.
464
+ *
445
465
* \since This function is available since SDL 3.2.0.
446
466
*/
447
467
extern SDL_DECLSPEC bool SDLCALL SDL_GetPathInfo (const char * path , SDL_PathInfo * info );
@@ -496,6 +516,8 @@ extern SDL_DECLSPEC char ** SDLCALL SDL_GlobDirectory(const char *path, const ch
496
516
* platform-dependent notation. NULL if there's a problem. This
497
517
* should be freed with SDL_free() when it is no longer needed.
498
518
*
519
+ * \threadsafety It is safe to call this function from any thread.
520
+ *
499
521
* \since This function is available since SDL 3.2.0.
500
522
*/
501
523
extern SDL_DECLSPEC char * SDLCALL SDL_GetCurrentDirectory (void );
0 commit comments