You've already forked godot
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user