pub struct EpochDomain { /* private fields */ }Expand description
Epoch-based reclamation domain
Implementations§
Source§impl EpochDomain
impl EpochDomain
Sourcepub fn register_thread(&self) -> usize
pub fn register_thread(&self) -> usize
Register a thread and return its index
Sourcepub fn retire(&self, ptr: *mut (), destructor: fn(*mut ()), size: usize)
pub fn retire(&self, ptr: *mut (), destructor: fn(*mut ()), size: usize)
Retire an object for later reclamation
Sourcepub fn advance_epoch(&self)
pub fn advance_epoch(&self)
Advance the global epoch
Sourcepub fn try_reclaim(&self) -> usize
pub fn try_reclaim(&self) -> usize
Try to reclaim objects from old epochs
Sourcepub fn current_epoch(&self) -> u64
pub fn current_epoch(&self) -> u64
Get current global epoch
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Get count of pending retired objects
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for EpochDomain
impl !RefUnwindSafe for EpochDomain
impl Send for EpochDomain
impl Sync for EpochDomain
impl Unpin for EpochDomain
impl UnwindSafe for EpochDomain
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more