Skip to content

Commit 634834c

Browse files
Update SDL_time.inc to 3.4.4
1 parent 8385959 commit 634834c

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

units/SDL3.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ interface
117117
{$I SDL_cpuinfo.inc} // 3.4.4
118118
{$I SDL_dialog.inc} // 3.4.4
119119
{$I SDL_messagebox.inc} // 3.4.4
120-
{$I SDL_time.inc} // 3.2.0
120+
{$I SDL_time.inc} // 3.4.4
121121
{$I SDL_filesystem.inc} // 3.2.0
122122
{$I SDL_atomic.inc} // 3.2.0
123123
{$I SDL_hidapi.inc} // 3.2.0

units/SDL_time.inc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ const
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
}
9193
function 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
}
104108
function 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
}
121127
function 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
}
137145
function 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
}
154164
procedure 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
}
170182
function 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
}
183197
function 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
}
197213
function 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
}
211229
function SDL_GetDayOfWeek(year: cint; month: cint; day: cint): cint; cdecl;

0 commit comments

Comments
 (0)