mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 11:42:28 +00:00
Fix hang, courtesy of cloin.
This commit is contained in:
@@ -480,6 +480,7 @@ void rwlock_acquire_upgrade(RWSpinLock *l) {
|
||||
}
|
||||
void rwlock_release_upgrade(RWSpinLock *l) {
|
||||
l->bits.fetch_add(-RWLOCK_UPGRADED, std::memory_order_acq_rel);
|
||||
futex_signal(&l->bits);
|
||||
}
|
||||
|
||||
bool rwlock_try_release_upgrade_and_acquire_write(RWSpinLock *l) {
|
||||
|
||||
Reference in New Issue
Block a user