5 #ifndef OS_INTERFACES_COUNTINGSEMAPHOREINTERFACE_HPP_ 6 #define OS_INTERFACES_COUNTINGSEMAPHOREINTERFACE_HPP_ 50 #endif // OS_INTERFACES_COUNTINGSEMAPHOREINTERFACE_HPP_ CountingSemaphoreInterface()=default
default constructor
virtual ~CountingSemaphoreInterface()=default
default virtual destructor
types and constants shared by users of Os::CountingSemaphore and by its implementations ...
CountingSemaphoreInterface & operator=(const CountingSemaphoreInterface &other)=delete
assignment operator is forbidden
virtual Status tryWait()=0
non-blocking attempt to decrement the semaphore
virtual Status waitTimeout(const Fw::TimeInterval &interval)=0
wait on the semaphore with a timeout
virtual Status post()=0
post (increment) the semaphore, potentially waking a waiting thread
virtual Status wait()=0
wait (decrement) the semaphore, blocking if count is zero
virtual CountingSemaphoreHandle * getHandle()=0
return the underlying semaphore handle (implementation specific)