F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
ConditionVariable.cpp
Go to the documentation of this file.
1// ======================================================================
2// \title Os/Stub/ConditionVariable.cpp
3// \brief Stub implementations for Os::ConditionVariable
4// ======================================================================
6#include "Fw/Types/Assert.hpp"
7
8namespace Os {
9namespace Stub {
10namespace Mutex {
11
13 // This stub implementation can only be used in deployments that never need to wait on any ConditionVariable.
14 // Trigger an assertion if anyone ever tries to wait.
15 FW_ASSERT(0);
16}
18 // Nobody is waiting, because we assert if anyone tries to wait.
19 // Therefore, we can notify all waiters by doing nothing.
20}
22 // Nobody is waiting, because we assert if anyone tries to wait.
23 // Therefore, we can notify all waiters by doing nothing.
24}
25
29
30}
31}
32}
#define FW_ASSERT(...)
Definition Assert.hpp:14
Condition variable handle parent.
Definition Condition.hpp:14
void notifyAll() override
notify all current waiters
void wait(Os::Mutex &mutex) override
wait releasing mutex
ConditionVariableHandle * getHandle() override
get handle
void notify() override
notify a single waiter