Booleanize various sync primitives' wait & locking methods

This commit is contained in:
Pedro J. Estébanez
2023-01-27 11:04:41 +01:00
parent 9f74f0f6c5
commit f630940591
9 changed files with 20 additions and 23 deletions

View File

@ -31,7 +31,6 @@
#ifndef MUTEX_H
#define MUTEX_H
#include "core/error/error_list.h"
#include "core/typedefs.h"
#include <mutex>
@ -49,8 +48,8 @@ public:
mutex.unlock();
}
_ALWAYS_INLINE_ Error try_lock() const {
return mutex.try_lock() ? OK : ERR_BUSY;
_ALWAYS_INLINE_ bool try_lock() const {
return mutex.try_lock();
}
};