1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

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

@@ -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();
}