Add missing fevent impl for RootScheme.

This commit is contained in:
4lDO2
2024-06-15 12:29:05 +02:00
parent 10714a4659
commit 6aa5ed020e
2 changed files with 11 additions and 2 deletions
+3
View File
@@ -23,6 +23,9 @@ impl<T> WaitQueue<T> {
condition: WaitCondition::new(),
}
}
pub fn is_currently_empty(&self) -> bool {
self.inner.lock().is_empty()
}
pub fn receive(&self, block: bool, reason: &'static str) -> Result<T> {
loop {