7979 * to run.
8080 *
8181 * See
82- * [Main callbacks in SDL3](https://wiki.libsdl.org/SDL3/README/ main-functions#main-callbacks-in-sdl3)
82+ * [Main callbacks in SDL3](https://wiki.libsdl.org/SDL3/README- main-functions#main-callbacks-in-sdl3)
8383 * for complete details.
8484 *
8585 * \since This enum is available since SDL 3.2.0.
204204 * \returns true on success or false on failure; call SDL_GetError() for more
205205 * information.
206206 *
207+ * \threadsafety This function should only be called on the main thread.
208+ *
207209 * \since This function is available since SDL 3.2.0.
208210 *
209211 * \sa SDL_SetAppMetadata
@@ -226,6 +228,8 @@ function SDL_Init(flags: TSDL_InitFlags): Boolean; cdecl;
226228 * \returns true on success or false on failure; call SDL_GetError() for more
227229 * information.
228230 *
231+ * \threadsafety This function should only be called on the main thread.
232+ *
229233 * \since This function is available since SDL 3.2.0.
230234 *
231235 * \sa SDL_Init
@@ -243,6 +247,8 @@ function SDL_InitSubSystem(flags: TSDL_InitFlags): Boolean; cdecl;
243247 *
244248 * \param flags any of the flags used by SDL_Init(); see SDL_Init for details.
245249 *
250+ * \threadsafety This function is not thread safe.
251+ *
246252 * \since This function is available since SDL 3.2.0.
247253 *
248254 * \sa SDL_InitSubSystem
@@ -258,6 +264,8 @@ procedure SDL_QuitSubSystem(flags: TSDL_InitFlags); cdecl;
258264 * \returns a mask of all initialized subsystems if `flags` is 0, otherwise it
259265 * returns the initialization status of the specified subsystems.
260266 *
267+ * \threadsafety This function is not thread safe.
268+ *
261269 * \since This function is available since SDL 3.2.0.
262270 *
263271 * \sa SDL_Init
@@ -277,6 +285,8 @@ function SDL_WasInit(flags: TSDL_InitFlags): TSDL_InitFlags; cdecl;
277285 * application is shutdown, but it is not wise to do this from a library or
278286 * other dynamically loaded code.
279287 *
288+ * \threadsafety This function should only be called on the main thread.
289+ *
280290 * \since This function is available since SDL 3.1.3.
281291 *
282292 * \sa SDL_Init
0 commit comments