40 size_t MINIMAL_CONCURRENCY = 2;
62 return util::max (std::thread::hardware_concurrency()
63 , MINIMAL_CONCURRENCY);
75 work::performRandomisedSpin (
size_t stepping,
size_t randFact)
78 for (
volatile size_t i=0; i<degree; ++i) {}
91 work::steppedRandDelay (
size_t stepping,
size_t randFact)
93 REQUIRE (stepping > 0);
94 uint factor = 1u << (stepping-1);
const microseconds CONTEND_WAIT
base time unit for the exponentially stepped-up sleep delay in case of contention ...
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
const size_t CONTEND_SOFT_FACTOR
base counter for a spinning wait loop
A pool of workers for multithreaded rendering.
static size_t COMPUTATION_CAPACITY
Nominal »full size« of a pool of concurrent workers.
Vault-Layer implementation namespace root.
static size_t getDefaultComputationCapacity()
default value for full computing capacity is to use all (virtual) cores.