13 FW_ASSERT(this->m_lock ==
nullptr || this->m_lock == &mutex);
14 this->m_lock = &mutex;
18 this->m_delegate.
wait(mutex);
Condition variable handle parent.
void notifyAll() override
notify all waiters on this condition variable
ConditionVariableHandle * getHandle() override
return the underlying condition variable handle (implementation specific). Delegates to implementatio...
ConditionVariable()
default constructor
~ConditionVariable() final
default virtual destructor
void notify() override
notify a single waiter on this condition variable
void wait(Os::Mutex &mutex) override
wait on a condition variable
interface for condition variables
virtual void notifyAll()=0
notify all waiters on this condition variable
virtual ~ConditionVariableInterface()=default
Default destructor.
virtual ConditionVariableHandle * getHandle()=0
return the underlying condition variable handle (implementation specific).
virtual void notify()=0
notify a single waiter on this condition variable
virtual void wait(Os::Mutex &mutex)=0
wait on a condition variable
Status take() override
lock the mutex and get return status
@ OP_OK
Operation succeeded.