template<typename AssociativeContainer, std::size_t nPartitions = 16, typename KeyPartitioner = Partitioner<typename AssociativeContainer::key_type>>
class mongo::Partitioned< AssociativeContainer, nPartitions, KeyPartitioner >::OnePartition
Used to protect access to a single partition of a Partitioned.
For example, can be used to do a series of reads and/or modifications to a single entry without interference from other threads.
template<typename AssociativeContainer , std::size_t nPartitions = 16, typename KeyPartitioner = Partitioner<typename AssociativeContainer::key_type>>
Acquires locks for the ith partition.
partitionedAssociativeContainer
must outlive this GuardedPartition. If a single thread needs access to multiple partitions, it must use GuardedAssociativeContainer, or acquire them in ascending order.