AUI Framework
develop
Cross-platform base for C++ UI apps
|
One-shot event communication. More...
#include <AUI/Thread/ACutoffSignal.h>
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(). | |
One-shot event communication.
Used for guaranteed signal from slave thread to master thread (i.e. wait till slave thread starts).
|
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.