Browse Source

Notify all threads when the write-lock goes out of scope

pull/10/head
Fenrir 7 years ago committed by FenrirWolf
parent
commit
128c323a7e
  1. 2
      ctr-std/src/sys/unix/rwlock.rs

2
ctr-std/src/sys/unix/rwlock.rs

@ -97,7 +97,7 @@ impl RWLock { @@ -97,7 +97,7 @@ impl RWLock {
pub unsafe fn write_unlock(&self) {
self.mutex.lock();
*self.writer_active.get() = false;
self.cvar.notify_one();
self.cvar.notify_all();
self.mutex.unlock();
}

Loading…
Cancel
Save