Daniel Gibson
|
e7e06d05f1
|
Fix SDL1.2 build and type of xthreadInfo::threadId
|
2023-01-16 03:22:01 +01:00 |
|
Daniel Gibson
|
a523c28c18
|
Add SysIsMainThread() function
returns true if called in the main thread
|
2021-06-20 03:36:39 +02:00 |
|
dhewg
|
a75387c55e
|
Add SDL2 support in sys/threads.cpp
|
2012-07-20 17:34:33 +02:00 |
|
dhewg
|
c994974ffc
|
Port Sys_Milliseconds() to SDL
Sync with SDL and use unsigned int as return type.
Code outside of sys/ still uses signed ints to store the result.
|
2011-12-22 10:38:38 +01:00 |
|
dhewg
|
317e63887c
|
Port Sys_Sleep() to SDL
|
2011-12-22 10:38:38 +01:00 |
|
dhewg
|
e7482b4957
|
Port all thread related functions to SDL
Setting thread priorities has been dropped (it is not portable).
The background download thread now exits gracefully.
g_threads is not public anymore.
|
2011-12-22 10:38:37 +01:00 |
|
dhewg
|
1a25b165b0
|
Port critical sections and events to SDL
Use SDL mutexes and conditions.
One new critical section CRITICAL_SECTION_SYS for events.
|
2011-12-21 17:50:35 +01:00 |
|