We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b23be9 + f2f9a6b commit d6385d7Copy full SHA for d6385d7
core/object/worker_thread_pool.cpp
@@ -427,7 +427,7 @@ void WorkerThreadPool::_lock_unlockable_mutexes() {
427
if ((((uintptr_t)unlockable_mutexes[i]) & 1) == 0) {
428
((Mutex *)unlockable_mutexes[i])->lock();
429
} else {
430
- ((BinaryMutex *)unlockable_mutexes[i])->lock();
+ ((BinaryMutex *)(unlockable_mutexes[i] & ~1))->lock();
431
}
432
433
@@ -441,7 +441,7 @@ void WorkerThreadPool::_unlock_unlockable_mutexes() {
441
442
((Mutex *)unlockable_mutexes[i])->unlock();
443
444
- ((BinaryMutex *)unlockable_mutexes[i])->unlock();
+ ((BinaryMutex *)(unlockable_mutexes[i] & ~1))->unlock();
445
446
447
0 commit comments