Struct mmtk::scheduler::Worker [−][src]
Fields
tls: OpaquePointer
ordinal: usize
parked: AtomicBool
local_work_bucket: WorkBucket<C>
sender: Sender<CoordinatorMessage<C>>
stat: WorkerLocalStat
Implementations
impl<C: Context> Worker<C>
[src]
pub fn new(
ordinal: usize,
scheduler: Weak<Scheduler<C>>,
is_coordinator: bool
) -> Self
[src]
ordinal: usize,
scheduler: Weak<Scheduler<C>>,
is_coordinator: bool
) -> Self
pub fn add_work(&mut self, bucket: WorkBucketStage, work: impl Work<C>)
[src]
pub fn is_parked(&self) -> bool
[src]
pub fn is_coordinator(&self) -> bool
[src]
pub fn scheduler(&self) -> &Scheduler<C>
[src]
pub unsafe fn local<W: 'static + WorkerLocal>(&mut self) -> &mut W
[src]
Safety
The user needs to guarantee that the type supplied here is the same type used to create this pointer.
pub fn set_local(&mut self, local: WorkerLocalPtr)
[src]
pub fn init(&mut self, tls: OpaquePointer)
[src]
pub fn do_work(&'static mut self, work: impl Work<C>)
[src]
pub fn run(&mut self, context: &'static C)
[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,