diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-29 12:35:11 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-29 12:35:11 +0100 |
| commit | 700624119beb5ebf6b9ec4e16ece2ba455c7cae1 (patch) | |
| tree | 202802ca5aa48f154102bc3f3b2d5bf00c1e8982 /src/common.cpp | |
| parent | af32aba7fc327cc1c0b37c4919d809adcaab45dc (diff) | |
Give `begin_error_block` its own recursive mutex
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp index fb2b2e0d8..4aea379c3 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -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); |