[−][src]Struct cgc::threads::Threads
Fields
threads: Mutex<Vec<Arc<MutatorThread>>>
cond_join: Condvar
next_id: AtomicUsize
safepoint: 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]
F: FnMut(&Arc<MutatorThread>),
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
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.
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>,