15#include "AConditionVariable.h"
23class [[deprecated(
"Use AFuture<void> instead")]] ACutoffSignal {
25 ACutoffSignal() =
default;
31 std::unique_lock lock(mMutex);
53 std::unique_lock lock(mMutex);
54 mCV.wait(lock, [
this] {
63 bool mSignaled =
false;
Represents a condition variable.
Definition AConditionVariable.h:24
void resetSignal() noexcept
Resets the cut off state so the waitForSignal() function would block again.
Definition ACutoffSignal.h:39
void makeSignal()
Flags a signal, causing the waitForSignal() to never block.
Definition ACutoffSignal.h:30
void waitForSignal()
Wait for makeSignal().
Definition ACutoffSignal.h:51
Basic syscall-based synchronization primitive.
Definition AMutex.h:33