GCC Code Coverage Report


Directory: ./
File: Os/Stub/CountingSemaphore.hpp
Date: 2026-09-03 22:12:29
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // ======================================================================
2 // \title Os/Stub/CountingSemaphore.hpp
3 // \brief Stub definitions for Os::CountingSemaphore
4 // ======================================================================
5 #ifndef OS_STUB_COUNTING_SEMAPHORE_HPP
6 #define OS_STUB_COUNTING_SEMAPHORE_HPP
7 #include <Os/CountingSemaphore.hpp>
8
9 namespace Os {
10 namespace Stub {
11 namespace Semaphore {
12
13 struct StubCountingSemaphoreHandle : public CountingSemaphoreHandle {};
14
15 class StubCountingSemaphore : public CountingSemaphoreInterface {
16 public:
17 explicit StubCountingSemaphore(U32 initial_count);
18
19 ~StubCountingSemaphore() override = default;
20
21 StubCountingSemaphore(const StubCountingSemaphore& other) = delete;
22
23 CountingSemaphoreInterface& operator=(const CountingSemaphoreInterface& other) = delete;
24
25 StubCountingSemaphore::Status wait() override;
26
27 StubCountingSemaphore::Status waitTimeout(const Fw::TimeInterval& interval) override;
28
29 StubCountingSemaphore::Status tryWait() override;
30
31 StubCountingSemaphore::Status post() override;
32
33 CountingSemaphoreHandle* getHandle() override;
34
35 private:
36 StubCountingSemaphoreHandle m_handle;
37 };
38
39 } // namespace Semaphore
40 } // namespace Stub
41 } // namespace Os
42 #endif // OS_STUB_COUNTING_SEMAPHORE_HPP
43