8686 * \returns true on success or false on failure; call SDL_GetError() for more
8787 * information.
8888 *
89+ * \threadsafety This function is not thread safe.
90+ *
8991 * \since This function is available since SDL 3.2.0.
9092 }
9193function SDL_GetDateTimeLocalePreferences (dateFormat: PSDL_DateFormat; timeFormat: PSDL_TimeFormat): Boolean; cdecl;
@@ -99,6 +101,8 @@ function SDL_GetDateTimeLocalePreferences(dateFormat: PSDL_DateFormat; timeForma
99101 * \returns true on success or false on failure; call SDL_GetError() for more
100102 * information.
101103 *
104+ * \threadsafety It is safe to call this function from any thread.
105+ *
102106 * \since This function is available since SDL 3.2.0.
103107 }
104108function SDL_GetCurrentTime (ticks: PSDL_Time): Boolean; cdecl;
@@ -116,6 +120,8 @@ function SDL_GetCurrentTime(ticks: PSDL_Time): Boolean; cdecl;
116120 * \returns true on success or false on failure; call SDL_GetError() for more
117121 * information.
118122 *
123+ * \threadsafety It is safe to call this function from any thread.
124+ *
119125 * \since This function is available since SDL 3.2.0.
120126 }
121127function SDL_TimeToDateTime (ticks: TSDL_Time; dt: PSDL_DateTime; localTime: Boolean): Boolean; cdecl;
@@ -132,6 +138,8 @@ function SDL_TimeToDateTime(ticks: TSDL_Time; dt: PSDL_DateTime; localTime: Bool
132138 * \returns true on success or false on failure; call SDL_GetError() for more
133139 * information.
134140 *
141+ * \threadsafety It is safe to call this function from any thread.
142+ *
135143 * \since This function is available since SDL 3.2.0.
136144 }
137145function SDL_DateTimeToTime (dt: PSDL_DateTime; ticks: PSDL_Time): Boolean; cdecl;
@@ -149,6 +157,8 @@ function SDL_DateTimeToTime(dt: PSDL_DateTime; ticks: PSDL_Time): Boolean; cdecl
149157 * \param dwHighDateTime a Pointer filled in with the high portion of the
150158 * Windows FILETIME value.
151159 *
160+ * \threadsafety It is safe to call this function from any thread.
161+ *
152162 * \since This function is available since SDL 3.2.0.
153163 }
154164procedure SDL_TimeToWindows (ticks: TSDL_Time; dwLowDateTime: pcuint32; dwHighDateTime: pcuint32); cdecl;
@@ -165,6 +175,8 @@ procedure SDL_TimeToWindows(ticks: TSDL_Time; dwLowDateTime: pcuint32; dwHighDat
165175 * \param dwHighDateTime the high portion of the Windows FILETIME value.
166176 * \returns the converted SDL time.
167177 *
178+ * \threadsafety It is safe to call this function from any thread.
179+ *
168180 * \since This function is available since SDL 3.2.0.
169181 }
170182function SDL_TimeFromWindows (dwLowDateTime: cuint32; dwHighDateTime: cuint32): TSDL_Time; cdecl;
@@ -178,6 +190,8 @@ function SDL_TimeFromWindows(dwLowDateTime: cuint32; dwHighDateTime: cuint32): T
178190 * \returns the number of days in the requested month or -1 on failure; call
179191 * SDL_GetError() for more information.
180192 *
193+ * \threadsafety It is safe to call this function from any thread.
194+ *
181195 * \since This function is available since SDL 3.2.0.
182196 }
183197function SDL_GetDaysInMonth (year: cint; month: cint): cint; cdecl;
@@ -192,6 +206,8 @@ function SDL_GetDaysInMonth(year: cint; month: cint): cint; cdecl;
192206 * \returns the day of year [0-365] if the date is valid or -1 on failure;
193207 * call SDL_GetError() for more information.
194208 *
209+ * \threadsafety It is safe to call this function from any thread.
210+ *
195211 * \since This function is available since SDL 3.2.0.
196212 }
197213function SDL_GetDayOfYear (year: cint; month: cint; day: cint): cint; cdecl;
@@ -206,6 +222,8 @@ function SDL_GetDayOfYear(year: cint; month: cint; day: cint): cint; cdecl;
206222 * \returns a value between 0 and 6 (0 being Sunday) if the date is valid or
207223 * -1 on failure; call SDL_GetError() for more information.
208224 *
225+ * \threadsafety It is safe to call this function from any thread.
226+ *
209227 * \since This function is available since SDL 3.2.0.
210228 }
211229function SDL_GetDayOfWeek (year: cint; month: cint; day: cint): cint; cdecl;
0 commit comments