15#include "AConditionVariable.h"
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
One-shot event communication.
Definition: ACutoffSignal.h:23
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
Represents a value that will be available at some point in the future.
Definition: AFuture.h:620
Basic syscall-based synchronization primitive.
Definition: AMutex.h:33