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:
10.07.2025
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter