cds  2.3.2
cds::sync::mod_select_policy Struct Reference

The lock lock_array cell selection policy "division by modulo". More...

#include <cds/sync/lock_array.h>

Public Member Functions

size_t operator() (size_t nWhat, size_t nCapacity) const
 Returns nWhat % nCapacity
 

Static Public Member Functions

static bool is_capacity_accepted (size_t nCapacity)
 Checks if nCapacity is acceptable by policy. For modulo policy, any positive nCapacity is accepted.
 

Detailed Description

The lock lock_array cell selection policy "division by modulo".


The documentation for this struct was generated from the following file:

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:53 by Doxygen 1.8.13