mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 07:17:48 -04:00
Give begin_error_block its own recursive mutex
This commit is contained in:
1 parent
af32aba7fc
commit
700624119b
2 files changed
+5
-3
No files matched your search
+1
-1
@@ -79,7 +79,7 @@ void mutex_lock(RecursiveMutex *m) {
|
||||
gb_mutex_lock(&m->mutex);
|
||||
}
|
||||
bool mutex_try_lock(RecursiveMutex *m) {
|
||||
return gb_mutex_try_lock(&m->mutex);
|
||||
return !!gb_mutex_try_lock(&m->mutex);
|
||||
}
|
||||
void mutex_unlock(RecursiveMutex *m) {
|
||||
gb_mutex_unlock(&m->mutex);
|
||||
|
||||
Reference in new issue
Block a user