Unigine::BackoffSpinner Class
Header: | #include <UnigineThread.h> |
This class implements exponential backoff mechanism for the SpinLock reducing the impact on CPU performance.
BackoffSpinner Class
Members
static BackoffSpinner ( ) #
Constructor. Creates a new Backoff Spinner.void spin ( ) #
Implements adaptive backoff by progressively increasing wait intervals. Begins with exponentially growing CPU pause instructions based on an internal counter; after reaching a threshold, yields to allow other threads to execute. Increments the backoff counter on each invocation.The information on this page is valid for UNIGINE 2.20 SDK.
Last update:
2025-07-10
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)