Struct solana_runtime::accounts_index_storage::BgThreads
source · struct BgThreads {
exit: Arc<AtomicBool>,
handles: Option<Vec<JoinHandle<()>>>,
wait: Arc<WaitableCondvar>,
}
Expand description
low-level managing the bg threads
Fields§
§exit: Arc<AtomicBool>
§handles: Option<Vec<JoinHandle<()>>>
§wait: Arc<WaitableCondvar>
Implementations§
source§impl BgThreads
impl BgThreads
fn new<T: IndexValue, U: DiskIndexValue + From<T> + Into<T>>( storage: &Arc<BucketMapHolder<T, U>>, in_mem: &[Arc<InMemAccountsIndex<T, U>>], threads: usize, can_advance_age: bool, exit: &Arc<AtomicBool> ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BgThreads
impl Send for BgThreads
impl Sync for BgThreads
impl Unpin for BgThreads
impl !UnwindSafe for BgThreads
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