F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
31 
33  void wait(Os::Mutex& mutex) override;
34 
36  void notify() override;
37 
39  void notifyAll() override;
40 
43 
44  private:
47 };
48 
49 } // namespace Mutex
50 } // namespace Posix
51 } // namespace Os
52 #endif // OS_STUB_CONDITION_VARIABLE_HPP
Condition variable handle parent.
Definition: Condition.hpp:14
interface for condition variables
Definition: Condition.hpp:20
Stub implementation of Os::ConditionVariable.
StubConditionVariable()=default
constructor
void notifyAll() override
notify all current waiters
~StubConditionVariable() override=default
destructor
void wait(Os::Mutex &mutex) override
wait releasing mutex
ConditionVariableHandle * getHandle() override
get handle
ConditionVariableInterface & operator=(const ConditionVariableInterface &other) override=delete
assignment operator is forbidden
void notify() override
notify a single waiter