![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Os/CountingSemaphore.hpp>
Public Member Functions | |
| CountingSemaphore (U32 initial_count) | |
| Constructor with initial count. More... | |
| ~CountingSemaphore () final | |
| Destructor. More... | |
| CountingSemaphore (const CountingSemaphoreInterface &other)=delete | |
| CountingSemaphore (const CountingSemaphore &other)=delete | |
| CountingSemaphore & | operator= (const CountingSemaphore &other)=delete |
| CountingSemaphore (CountingSemaphore &&other)=delete | |
| CountingSemaphore & | operator= (CountingSemaphore &&other)=delete |
| Status | wait () override |
| wait (decrement), blocking if count is zero More... | |
| Status | waitTimeout (const Fw::TimeInterval &interval) override |
| wait with timeout More... | |
| Status | tryWait () override |
| non-blocking attempt to decrement the semaphore More... | |
| Status | post () override |
| post (increment) the semaphore, potentially waking a waiting thread More... | |
| CountingSemaphoreHandle * | getHandle () override |
| return the underlying semaphore handle (implementation specific) More... | |
Public Member Functions inherited from Os::CountingSemaphoreInterface | |
| CountingSemaphoreInterface ()=default | |
| default constructor More... | |
| virtual | ~CountingSemaphoreInterface ()=default |
| default virtual destructor More... | |
| CountingSemaphoreInterface (const CountingSemaphoreInterface &other)=delete | |
| copy constructor is forbidden More... | |
| CountingSemaphoreInterface & | operator= (const CountingSemaphoreInterface &other)=delete |
| assignment operator is forbidden More... | |
Additional Inherited Members | |
Public Types inherited from Os::CountingSemaphoreInterface | |
| enum | Status { OP_OK, ERROR_TIMEOUT, ERROR_INVALID, ERROR_NOT_IMPLEMENTED, NOT_SUPPORTED, ERROR_OTHER } |
Static Public Member Functions inherited from Os::CountingSemaphoreInterface | |
| static CountingSemaphoreInterface * | getDelegate (CountingSemaphoreHandleStorage &aligned_new_memory, U32 initial_count) |
| provide a pointer to a CountingSemaphore delegate object More... | |
Definition at line 63 of file CountingSemaphore.hpp.
|
explicit |
Constructor with initial count.
Definition at line 5 of file CountingSemaphore.cpp.
|
final |
Destructor.
Definition at line 8 of file CountingSemaphore.cpp.
|
delete |
|
delete |
|
delete |
|
overridevirtual |
return the underlying semaphore handle (implementation specific)
Implements Os::CountingSemaphoreInterface.
Definition at line 32 of file CountingSemaphore.cpp.
|
delete |
|
delete |
|
overridevirtual |
post (increment) the semaphore, potentially waking a waiting thread
Implements Os::CountingSemaphoreInterface.
Definition at line 27 of file CountingSemaphore.cpp.
|
overridevirtual |
non-blocking attempt to decrement the semaphore
Implements Os::CountingSemaphoreInterface.
Definition at line 22 of file CountingSemaphore.cpp.
|
overridevirtual |
wait (decrement), blocking if count is zero
Implements Os::CountingSemaphoreInterface.
Definition at line 12 of file CountingSemaphore.cpp.
|
overridevirtual |
wait with timeout
Implements Os::CountingSemaphoreInterface.
Definition at line 17 of file CountingSemaphore.cpp.