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