struct RemoveUnrootedSlotsSynchronization {
slots_under_contention: Mutex<HashSet<Slot>>,
signal: Condvar,
}
Expand description
Removing unrooted slots in Accounts Background Service needs to be synchronized with flushing slots from the Accounts Cache. This keeps track of those slots and the Mutex + Condvar for synchronization.
Fields§
§slots_under_contention: Mutex<HashSet<Slot>>
§signal: Condvar
Trait Implementations§
source§impl Default for RemoveUnrootedSlotsSynchronization
impl Default for RemoveUnrootedSlotsSynchronization
source§fn default() -> RemoveUnrootedSlotsSynchronization
fn default() -> RemoveUnrootedSlotsSynchronization
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RemoveUnrootedSlotsSynchronization
impl Send for RemoveUnrootedSlotsSynchronization
impl Sync for RemoveUnrootedSlotsSynchronization
impl Unpin for RemoveUnrootedSlotsSynchronization
impl UnwindSafe for RemoveUnrootedSlotsSynchronization
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