QuantumLibrary
|
This class provides the same functionality as a coroutine yield when called from a thread context. More...
#include <quantum_yielding_thread.h>
Public Member Functions | |
void | operator() (DURATION time=defaultDuration()) |
Yields the current thread either via a busy wait loop or by sleeping it. Behavior is determined at compile time. More... | |
Static Public Member Functions | |
static DURATION | defaultDuration () |
This class provides the same functionality as a coroutine yield when called from a thread context.
|
inlinestatic |
|
inline |
Yields the current thread either via a busy wait loop or by sleeping it. Behavior is determined at compile time.
[in] | time | Time used for the sleep duration. |