Rename MT functions, add tests, fix bugs
Renamed multithreaded related functions, added simple unit tests and fix bugs caught by said tests :)
This commit is contained in:
@@ -21,7 +21,7 @@ void BH_SpinlockLock(int *lock)
|
||||
}
|
||||
|
||||
|
||||
int BH_SpinlockLockTry(int *lock)
|
||||
int BH_SpinlockTryLock(int *lock)
|
||||
{
|
||||
#if defined(__clang__) || defined(__GNUC__)
|
||||
if (__sync_lock_test_and_set(lock, 1))
|
||||
|
||||
Reference in New Issue
Block a user