autocommit 2022-03-11 19:24:53 CET
This commit is contained in:
parent
b1890894b2
commit
0ae73ab9c4
9 changed files with 277 additions and 66 deletions
|
|
@ -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() }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue