31 size_t MINIMAL_CONCURRENCY = 2;
53 return util::max (std::thread::hardware_concurrency()
54 , MINIMAL_CONCURRENCY);
66 work::performRandomisedSpin (
size_t stepping,
size_t randFact)
69 for (
volatile size_t i=0; i<degree; ++i) {}
82 work::steppedRandDelay (
size_t stepping,
size_t randFact)
84 REQUIRE (stepping > 0);
85 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.