8 #ifndef OS_CONDITION_HPP_
9 #define OS_CONDITION_HPP_
#define FW_HANDLE_ALIGNMENT
Alignment of handle storage.
U8 ConditionVariableHandleStorage[FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE]
Condition variable handle parent.
condition variable implementation
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
ConditionVariable(const ConditionVariableInterface *other)=delete
copy constructor is forbidden
void notify() override
notify a single waiter on this condition variable
ConditionVariableInterface & operator=(const ConditionVariableInterface &other) override=delete
assignment operator is forbidden
ConditionVariable(const ConditionVariableInterface &other)=delete
copy constructor is forbidden
void wait(Os::Mutex &mutex) override
wait on a condition variable
interface for condition variables
virtual ConditionVariableInterface & operator=(const ConditionVariableInterface &other)=delete
assignment operator is forbidden
static ConditionVariableInterface * getDelegate(ConditionVariableHandleStorage &aligned_new_memory)
provide a pointer to a Mutex delegate object
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).
ConditionVariableInterface(const ConditionVariableInterface &other)=delete
copy constructor is forbidden
ConditionVariableInterface()=default
Default constructor.
virtual void notify()=0
notify a single waiter on this condition variable
virtual void wait(Os::Mutex &mutex)=0
wait on a condition variable