pub struct SharedTable<K, M, S> { /* private fields */ }Expand description
A transposition table several threads search with at once: SlotTable shards, each
behind its own lock.
A key’s shard comes from all bits of TableKey::slot, mixed, and its slot within the
shard from the low bits, so threads rarely wait for the same lock. Searchers use it through a
shared reference: &SharedTable implements Table, so each thread builds its own
Searcher::with_table(&table), as
deepen_shared does for Lazy SMP.
Available with the parallel feature, which needs std.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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