Commit Graph

5 Commits

Author SHA1 Message Date
0683389d7b Improved build system and POSIX compatibility
Fixed few bugs related to build system and POSIX compatabilty.
2025-04-05 13:55:06 +03:00
83a4e723bf Fix build error on Linux/POSIX 2025-03-03 17:43:13 +03:00
fe2f39d489 Move include from BH/Thread.h to impls' Thread.h 2025-03-03 10:25:45 +03:00
d403d41f2c Add initial implementation of threads/mutexes/semaphores/cvs/spinlocks
Added initial implementation (or wrapper) of the threading library.
It's rather basic, but should work for most of the tasks.

Unfortunately, spinlock implementation relies on GCC/Clang compiler
built-ins (or in-worst-case-scenario on Win32 - InterlockExchange).
In the future, I should revisit this code and fix/reimplement some stuff
(or add support for Windows XP).
2025-03-02 23:18:23 +03:00
e1c62d4f6b Move platform-dependent code into it's own directory 2025-02-28 10:13:51 +03:00