Trait mmtk::scheduler::Context[][src]

pub trait Context: 'static + Send + Sync + Sized {
    fn spawn_worker(
        worker: &'static Worker<Self>,
        _tls: OpaquePointer,
        context: &'static Self
    ) { ... } }

The global context for the whole scheduling system. This context is globally accessable for all work-packets, workers and the scheduler.

For mmtk, the global context is MMTK<VM>.

Provided methods

fn spawn_worker(
    worker: &'static Worker<Self>,
    _tls: OpaquePointer,
    context: &'static Self
)
[src]

Loading content...

Implementations on Foreign Types

impl Context for ()[src]

A default implementation for scheduling systems that does not require a global context.

Loading content...

Implementors

impl<VM: VMBinding> Context for MMTK<VM>[src]

The global context for mmtk is MMTK<VM>.

Loading content...