cds
2.3.2
|
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. | |
The lock lock_array cell selection policy "division by modulo".