io-uring: ensure that timeouts are encoded in the same submission
This commit is contained in:
parent
7cc6c945d3
commit
4780315f50
5 changed files with 35 additions and 18 deletions
|
|
@ -23,6 +23,12 @@ impl<T> SyncQueue<T> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn push_front(&self, t: T) {
|
||||
unsafe {
|
||||
self.el.get().deref_mut().push_front(t);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn pop(&self) -> Option<T> {
|
||||
unsafe { self.el.get().deref_mut().pop_front() }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue