Module counters

Source

Structsยง

AtomicCounters ๐Ÿ”’
Counters ๐Ÿ”’
JobsEventCounter ๐Ÿ”’
A value read from the Jobs Event Counter. See the README.md for more coverage of how the jobs event counter works.

Constantsยง

INACTIVE_SHIFT ๐Ÿ”’
Bits to shift to select the inactive threads (used with select_bits).
JEC_SHIFT ๐Ÿ”’
Bits to shift to select the JEC (use JOBS_BITS).
ONE_INACTIVE ๐Ÿ”’
Constant that can be added to add one inactive thread. An inactive thread is either idle, sleepy, or sleeping.
ONE_JEC ๐Ÿ”’
Constant that can be added to add one to the JEC.
ONE_SLEEPING ๐Ÿ”’
Constant that can be added to add one sleeping thread.
SLEEPING_SHIFT ๐Ÿ”’
Bits to shift to select the sleeping threads (used with select_bits).
THREADS_BITS ๐Ÿ”’
Number of bits used for the thread counters.
THREADS_MAX ๐Ÿ”’
Max value for the thread counters.

Functionsยง

select_jec ๐Ÿ”’
select_thread ๐Ÿ”’