1
0
Fork 0
forked from wry/wry

autocommit 2022-03-11 19:24:53 CET

This commit is contained in:
Julian Orth 2022-03-11 19:24:53 +01:00
parent b1890894b2
commit 0ae73ab9c4
9 changed files with 277 additions and 66 deletions

View file

@ -24,4 +24,8 @@ impl<T> SyncQueue<T> {
pub fn pop(&self) -> Option<T> {
unsafe { self.el.get().deref_mut().pop_front() }
}
pub fn is_empty(&self) -> bool {
unsafe { self.el.get().deref_mut().is_empty() }
}
}