5 #ifndef OS_STUB_COUNTING_SEMAPHORE_HPP 6 #define OS_STUB_COUNTING_SEMAPHORE_HPP 42 #endif // OS_STUB_COUNTING_SEMAPHORE_HPP
StubCountingSemaphore::Status waitTimeout(const Fw::TimeInterval &interval) override
wait on the semaphore with a timeout
StubCountingSemaphore(U32 initial_count)
StubCountingSemaphore::Status post() override
post (increment) the semaphore, potentially waking a waiting thread
CountingSemaphoreInterface & operator=(const CountingSemaphoreInterface &other)=delete
CountingSemaphoreHandle * getHandle() override
return the underlying semaphore handle (implementation specific)
StubCountingSemaphore::Status tryWait() override
non-blocking attempt to decrement the semaphore
~StubCountingSemaphore() override=default
StubCountingSemaphore::Status wait() override
wait (decrement) the semaphore, blocking if count is zero