61 if(m_ready.exchange(
true) ==
true)
85 if(m_ready.exchange(
true) ==
true)
102 std::unique_lock<std::mutex>
lock(m_mutex);
103 m_cond.wait(
lock, [&]{
return m_ready.load(); });
134 std::condition_variable m_cond;
135 std::atomic_bool m_ready;
Definition AcceleratorBuffer.h:204
Synchronization primitive for sending a "something is ready" notification to a thread.
Definition Event.h:38
void SignalExactlyOnce(Event &processedEvent)
Sends an event to the receiving thread.
Definition Event.h:80
bool SignalIfNotAlreadySignaled()
Sends an event to the receiving thread.
Definition Event.h:58
bool Peek(bool clearReady=true)
Checks if the event is signaled, and returns immediately without blocking regardless of event state.
Definition Event.h:112
void Signal()
Sends an event to the receiving thread.
Definition Event.h:47
void Clear()
Clears the event state if it's currently signaled.
Definition Event.h:127
void Block()
Blocks until the event is signaled.
Definition Event.h:100