diff options
Diffstat (limited to 'src/common/mutex.c')
-rw-r--r-- | src/common/mutex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/mutex.c b/src/common/mutex.c index cda8049..b345ee5 100644 --- a/src/common/mutex.c +++ b/src/common/mutex.c @@ -13,11 +13,11 @@ void mutex_lock(uint32_t* mutex) { } } -int mutex_try_lock(uint32_t* mutex) { +bool mutex_try_lock(uint32_t* mutex) { if (atomic_exchange(mutex, MUTEX_LOCKED) == MUTEX_LOCKED) { - return 0; + return false; } - return 1; + return true; } void mutex_unlock(uint32_t* mutex) { |