GCC Code Coverage Report


Directory: ./
File: Os/Stub/ConditionVariable.cpp
Date: 2026-09-03 22:12:29
Exec Total Coverage
Lines: 0 8 0.0%
Functions: 0 4 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // ======================================================================
2 // \title Os/Stub/ConditionVariable.cpp
3 // \brief Stub implementations for Os::ConditionVariable
4 // ======================================================================
5 #include "Os/Stub/ConditionVariable.hpp"
6 #include "Fw/Types/Assert.hpp"
7
8 namespace Os {
9 namespace Stub {
10 namespace Mutex {
11
12 StubConditionVariable::Status StubConditionVariable::pend(Os::Mutex& mutex) {
13 // This stub implementation can only be used in deployments that never need to wait on any ConditionVariable.
14 // Return error if anyone ever tries to wait.
15 return StubConditionVariable::Status::ERROR_NOT_IMPLEMENTED;
16 }
17 void StubConditionVariable::notify() {
18 // Nobody can be waiting, because pend() always fails with ERROR_NOT_IMPLEMENTED.
19 // Therefore, we can notify all waiters by doing nothing.
20 }
21 void StubConditionVariable::notifyAll() {
22 // Nobody can be waiting, because pend() always fails with ERROR_NOT_IMPLEMENTED.
23 // Therefore, we can notify all waiters by doing nothing.
24 }
25
26 ConditionVariableHandle* StubConditionVariable::getHandle() {
27 return &m_handle;
28 }
29
30 } // namespace Mutex
31 } // namespace Stub
32 } // namespace Os
33