Struct crossbeam_utils::sync::sharded_lock::ThreadIndices
source · struct ThreadIndices {
mapping: HashMap<ThreadId, usize>,
free_list: Vec<usize>,
next_index: usize,
}
Expand description
The global registry keeping track of registered threads and indices.
Fields§
§mapping: HashMap<ThreadId, usize>
Mapping from ThreadId
to thread index.
free_list: Vec<usize>
A list of free indices.
next_index: usize
The next index to allocate if the free list is empty.
Auto Trait Implementations§
impl Freeze for ThreadIndices
impl RefUnwindSafe for ThreadIndices
impl Send for ThreadIndices
impl Sync for ThreadIndices
impl Unpin for ThreadIndices
impl UnwindSafe for ThreadIndices
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