Spinner
class Spinner
A spinner implements utility functions for spinning in a loop.
Constructors
Properties
Functions
Link copied to clipboard
Calculates the elapsed time in nanoseconds since the provided start time.
Link copied to clipboard
Defines the limit for iterations in a spin-loop before it exits.
Link copied to clipboard
Determines the limit for the number of iterations the spin-loop should perform before yielding to other threads.
Link copied to clipboard
Link copied to clipboard
Waits in the spin-loop until the given condition is true. Exits the spin-loop after a certain number of spin-loop iterations --- typically, in this case, one may want to fall back into some blocking synchronization.
Link copied to clipboard
Waits in a spin-loop until the specified condition is met or the timeout is reached.
Link copied to clipboard
Waits in the spin-loop until the given condition is true with periodical yielding to other threads.