diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-01-27 11:04:41 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-01-27 11:15:30 +0100 |
commit | f630940591f66cc98fb52f2873e8c9f1eb1ee056 (patch) | |
tree | 5876b0217b3c782698ea3650cdd32c6706d9fa1a /core/core_bind.cpp | |
parent | 9f74f0f6c5e5c98b18f4f0ad95092a88d064f616 (diff) | |
download | redot-engine-f630940591f66cc98fb52f2873e8c9f1eb1ee056.tar.gz |
Booleanize various sync primitives' wait & locking methods
Diffstat (limited to 'core/core_bind.cpp')
-rw-r--r-- | core/core_bind.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp index 96e1da9dde..9de901754a 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -1105,8 +1105,8 @@ void Semaphore::wait() { semaphore.wait(); } -Error Semaphore::try_wait() { - return semaphore.try_wait() ? OK : ERR_BUSY; +bool Semaphore::try_wait() { + return semaphore.try_wait(); } void Semaphore::post() { @@ -1125,7 +1125,7 @@ void Mutex::lock() { mutex.lock(); } -Error Mutex::try_lock() { +bool Mutex::try_lock() { return mutex.try_lock(); } |