Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
vault::gear::anonymous_namespace{work-force.hpp} Namespace Reference

Functions

size_t thisThreadHash ()
 

Variables

const double MAX_OVERPROVISIONING = 3.0
 safety guard to prevent catastrophic over-provisioning
 
const size_t CONTEND_SOFT_LIMIT = 3
 zone for soft anti-contention measures, counting continued contention events
 
const size_t CONTEND_STARK_LIMIT = CONTEND_SOFT_LIMIT + 5
 zone for stark measures, performing a sleep with exponential stepping
 
const size_t CONTEND_SATURATION = CONTEND_STARK_LIMIT + 4
 upper limit for the contention event count
 
const size_t CONTEND_SOFT_FACTOR = 100
 base counter for a spinning wait loop
 
const size_t CONTEND_RANDOM_STEP = 11
 stepping for randomisation of anti-contention measures
 
const microseconds CONTEND_WAIT = 100us
 base time unit for the exponentially stepped-up sleep delay in case of contention
 

Function Documentation

◆ thisThreadHash()

size_t thisThreadHash ( )
inline

Definition at line 84 of file work-force.hpp.

References thisThreadHash().

Referenced by thisThreadHash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ MAX_OVERPROVISIONING

const double MAX_OVERPROVISIONING = 3.0

safety guard to prevent catastrophic over-provisioning

Definition at line 74 of file work-force.hpp.

◆ CONTEND_SOFT_LIMIT

const size_t CONTEND_SOFT_LIMIT = 3

zone for soft anti-contention measures, counting continued contention events

Definition at line 76 of file work-force.hpp.

◆ CONTEND_STARK_LIMIT

const size_t CONTEND_STARK_LIMIT = CONTEND_SOFT_LIMIT + 5

zone for stark measures, performing a sleep with exponential stepping

Definition at line 77 of file work-force.hpp.

◆ CONTEND_SATURATION

const size_t CONTEND_SATURATION = CONTEND_STARK_LIMIT + 4

upper limit for the contention event count

Definition at line 78 of file work-force.hpp.

◆ CONTEND_SOFT_FACTOR

const size_t CONTEND_SOFT_FACTOR = 100

base counter for a spinning wait loop

Definition at line 79 of file work-force.hpp.

◆ CONTEND_RANDOM_STEP

const size_t CONTEND_RANDOM_STEP = 11

stepping for randomisation of anti-contention measures

Definition at line 80 of file work-force.hpp.

◆ CONTEND_WAIT

const microseconds CONTEND_WAIT = 100us

base time unit for the exponentially stepped-up sleep delay in case of contention

Definition at line 81 of file work-force.hpp.