AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
One-shot event communication. More...
One-shot event communication.
Used for guaranteed signal from slave thread to master thread (i.e. wait till slave thread starts).
Public Member Functions | |
void | makeSignal () |
Flags a signal, causing the waitForSignal() to never block. | |
void | resetSignal () noexcept |
Resets the cut off state so the waitForSignal() function would block again. | |
void | waitForSignal () |
Wait for makeSignal(). More... | |
|
inline |
Wait for makeSignal().
waitForSignal() blocks the thread until makeSignal() is not called by other thread.
Unlike condition variable, the second call to makeSignal() will not block. To override this behaviour, use the resetSignal() function.
#include <AUI/Thread/ACutoffSignal.h>