Assert state in sys/unsupported's RwLock::write_unlock.
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
parent
f4e884288d
commit
f1c3edbfab
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ impl RWLock {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub unsafe fn write_unlock(&self) {
|
pub unsafe fn write_unlock(&self) {
|
||||||
self.mode.set(0);
|
assert_eq!(self.mode.replace(0), -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue