Commit Graph

6 Commits

Author SHA1 Message Date
OBattler
e0d46f8462 Fixed two compile-breaking mistakes. 2021-09-19 16:33:48 +02:00
OBattler
5af94b6759 Rewrote thread.c so it uses Win32 threads on Windows. 2021-09-19 14:01:25 +02:00
David Hrdlička
84c56859ec Small fixup in thread_wait_event 2021-09-18 20:04:03 +02:00
David Hrdlička
39653e366a Fix pthreads on non-MinGW Windows builds
- Use C11 standard `timespec_get` instead of `clock_gettime`
- Remove the unused `thread_sleep` function
2021-09-18 19:09:34 +02:00
Cacodemon345
92fac79ab8 Fix pthreads building on Windows 2021-09-18 13:02:55 +06:00
OBattler
3c2ac29c68 Switched threads to pthread for all platforms (on Windows, you can compile with Win32 threads using PTHREAD=n). 2021-09-14 21:58:15 +02:00