pub(crate) struct AtomicNotified<S: 'static> {
task: AtomicPtr<Header>,
_scheduler: PhantomData<S>,
}Expand description
An atomic cell which can contain a pointer to a Notified task.
This is similar to the crate::util::AtomicCell type, but specialized to
hold a task pointer — this type “remembers” the task’s scheduler generic
when a task is stored in the cell, so that the pointer can be turned back
into a Notified task with the correct generic type when it is retrieved.
Fields§
§task: AtomicPtr<Header>§_scheduler: PhantomData<S>Implementations§
Trait Implementations§
Source§impl<S> Drop for AtomicNotified<S>
impl<S> Drop for AtomicNotified<S>
impl<S: Send> Send for AtomicNotified<S>
impl<S: Send> Sync for AtomicNotified<S>
Auto Trait Implementations§
impl<S> !Freeze for AtomicNotified<S>
impl<S> RefUnwindSafe for AtomicNotified<S>where
S: RefUnwindSafe,
impl<S> Unpin for AtomicNotified<S>where
S: Unpin,
impl<S> !UnwindSafe for AtomicNotified<S>
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