Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
|
An object that backs-off a thread to reduce contention with other threads. More...
#include <Backoff.h>
Public Member Functions | |
GTS_INLINE bool | tick () |
Take the next backoff step. | |
GTS_INLINE void | reset () |
Reset the backoff state. | |
GTS_INLINE int32_t | spinCount () const |
Get the number of spins to perform next tick. More... | |
An object that backs-off a thread to reduce contention with other threads.
GROWTH_RATE | The growth rate of the backoff. |
YIELD | A flag to indicate that the backoff will yield the thread once a threshold has been reached. |
|
inline |
Get the number of spins to perform next tick.