Commit Graph

3 Commits

Author SHA1 Message Date
8d18e8020c Convert static func naming to same style
Previously, some modules used BH_<Module> prefix in the names of static
functions (some used just <Module> prefix). Now every static function
should start from lowercase.
2025-09-06 23:40:32 +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