[][src]Struct cgc::threads::Threads

pub struct Threads {
    pub threads: Mutex<Vec<Arc<MutatorThread>>>,
    pub cond_join: Condvar,
    pub next_id: AtomicUsize,
    pub safepoint: Mutex<(usize, usize)>,
    pub barrier: Barrier,
}

Fields

threads: Mutex<Vec<Arc<MutatorThread>>>cond_join: Condvarnext_id: AtomicUsizesafepoint: Mutex<(usize, usize)>barrier: Barrier

Methods

impl Threads[src]

pub fn new() -> Threads[src]

pub fn attach_current_thread(&self)[src]

pub fn attach_thread(&self, thread: Arc<MutatorThread>)[src]

pub fn next_id(&self) -> usize[src]

pub fn safepoint_id(&self) -> usize[src]

pub fn safepoint_requested(&self) -> bool[src]

pub fn request_safepoint(&self) -> usize[src]

pub fn clear_safepoint_request(&self)[src]

pub fn detach_current_thread(&self)[src]

pub fn join_all(&self)[src]

pub fn each<F>(&self, f: F) where
    F: FnMut(&Arc<MutatorThread>), 
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Threads

impl Send for Threads

impl Sync for Threads

impl Unpin for Threads

impl !UnwindSafe for Threads

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.