53 return util::max (std::thread::hardware_concurrency()
54 , MINIMAL_CONCURRENCY);
68 size_t degree = CONTEND_SOFT_FACTOR * (1+randFact) * stepping;
69 for (
volatile size_t i=0; i<degree; ) { i=i+1; }
84 REQUIRE (stepping > 0);
85 uint factor = 1u << (stepping-1);
86 return (CONTEND_WAIT + 10us*randFact) * factor;
size_t MINIMAL_CONCURRENCY
void performRandomisedSpin(size_t, size_t)
This is part of the weak level of anti-contention measures.
microseconds steppedRandDelay(size_t, size_t)
Calculate the delay time for a stronger anti-contention wait.
Vault-Layer implementation namespace root.
static size_t getDefaultComputationCapacity()
default value for full computing capacity is to use all (virtual) cores.
static size_t COMPUTATION_CAPACITY
Nominal »full size« of a pool of concurrent workers.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
A pool of workers for multithreaded rendering.