pub(crate) struct Steal<T: 'static>(Arc<Inner<T>>);
Expand description
Consumer handle. May be used from many threads.
Tuple Fields§
§0: Arc<Inner<T>>
Implementations§
Source§impl<T> Steal<T>
impl<T> Steal<T>
Sourcepub(crate) fn is_empty(&self) -> bool
pub(crate) fn is_empty(&self) -> bool
Return true if the queue is empty, false if there are any entries in the queue
Sourcepub(crate) fn steal_into(
&self,
dst: &mut Local<T>,
dst_stats: &mut Stats,
) -> Option<Notified<T>>
pub(crate) fn steal_into( &self, dst: &mut Local<T>, dst_stats: &mut Stats, ) -> Option<Notified<T>>
Steals half the tasks from self and place them into dst
.
fn steal_into2(&self, dst: &mut Local<T>, dst_tail: u32) -> u32
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Steal<T>
impl<T> !RefUnwindSafe for Steal<T>
impl<T> Send for Steal<T>
impl<T> Sync for Steal<T>
impl<T> Unpin for Steal<T>
impl<T> !UnwindSafe for Steal<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more