diff options
| author | Fenrir <[email protected]> | 2018-01-24 00:53:46 -0700 |
|---|---|---|
| committer | FenrirWolf <[email protected]> | 2018-01-25 00:26:32 -0700 |
| commit | 128c323a7ea14005cf9d8bcd240b70a4a61614b1 (patch) | |
| tree | 91a0cddf1b7ec2baeec5a4f137c9dc1d684a7683 /ctr-std/src/sys | |
| parent | Fix mutex try_lock logic (diff) | |
| download | ctru-rs-128c323a7ea14005cf9d8bcd240b70a4a61614b1.tar.xz ctru-rs-128c323a7ea14005cf9d8bcd240b70a4a61614b1.zip | |
Notify all threads when the write-lock goes out of scope
Diffstat (limited to 'ctr-std/src/sys')
| -rw-r--r-- | ctr-std/src/sys/unix/rwlock.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctr-std/src/sys/unix/rwlock.rs b/ctr-std/src/sys/unix/rwlock.rs index 10162ef..76d2271 100644 --- a/ctr-std/src/sys/unix/rwlock.rs +++ b/ctr-std/src/sys/unix/rwlock.rs @@ -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(); } |