F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ConditionVariable.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Stub/ConditionVariable.hpp
3 // \brief Stub definitions for Os::ConditionVariable
4 // ======================================================================
5 #ifndef OS_STUB_CONDITION_VARIABLE_HPP
6 #define OS_STUB_CONDITION_VARIABLE_HPP
7 #include <Os/Condition.hpp>
8 
9 namespace Os {
10 namespace Stub {
11 namespace Mutex {
12 
14 
20  public:
23  StubConditionVariable() = default;
24 
27  ~StubConditionVariable() override = default;
28 
30  ConditionVariableInterface& operator=(const ConditionVariableInterface& other) override = delete;
31 
34 
36  void notify() override;
37 
39  void notifyAll() override;
40 
43 
44  private:
47 };
48 
49 } // namespace Mutex
50 } // namespace Stub
51 } // namespace Os
52 #endif // OS_STUB_CONDITION_VARIABLE_HPP
ConditionVariableInterface & operator=(const ConditionVariableInterface &other) override=delete
assignment operator is forbidden
void notifyAll() override
notify all current waiters
Stub implementation of Os::ConditionVariable.
interface for condition variables
Definition: Condition.hpp:20
ConditionVariableHandle * getHandle() override
get handle
StubConditionVariable::Status pend(Os::Mutex &mutex) override
wait releasing mutex
~StubConditionVariable() override=default
destructor
StubConditionVariable()=default
constructor
void notify() override
notify a single waiter
Condition variable handle parent.
Definition: Condition.hpp:14