Struct open_coroutine::WorkStealQueue
source · pub struct WorkStealQueue { /* private fields */ }
Implementations§
source§impl WorkStealQueue
impl WorkStealQueue
pub fn push_back<T>(&mut self, element: T) -> Result<(), Error>
pub fn push_back_raw(&mut self, ptr: *mut c_void) -> Result<(), Error>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
pub fn spare(&self) -> usize
sourcepub fn pop_front_raw(&mut self) -> Option<*mut c_void>
pub fn pop_front_raw(&mut self) -> Option<*mut c_void>
如果是闭包,还是要获取裸指针再手动转换,不然类型有问题