ei: add support for libei
This commit is contained in:
parent
084fe50259
commit
40e87f8f91
69 changed files with 4340 additions and 72 deletions
|
|
@ -37,6 +37,10 @@ impl<T> SyncQueue<T> {
|
|||
unsafe { self.el.get().deref_mut().is_empty() }
|
||||
}
|
||||
|
||||
pub fn is_not_empty(&self) -> bool {
|
||||
!self.is_empty()
|
||||
}
|
||||
|
||||
pub fn swap(&self, queue: &mut VecDeque<T>) {
|
||||
unsafe {
|
||||
mem::swap(self.el.get().deref_mut(), queue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue