Solve borrow rules for memory.rs

This commit is contained in:
Wildan M
2026-03-31 14:08:23 +07:00
committed by Jeremy Soller
parent 55e6fe9add
commit 3161a44c25
4 changed files with 136 additions and 39 deletions
+2
View File
@@ -38,6 +38,8 @@ impl<T> WaitQueue<T> {
if inner.is_empty() {
if block {
// SAFETY: Uses wait_inner because this inner is L2. It's guaranteed there's no other
// lock held at this point because clean token is provided from caller.
if !self.condition.wait_inner(inner, reason, &mut token) {
return Err(Error::new(EINTR));
}