![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Os::Mutex wrapper around the implementation T selected at compile time.
More...
#include <Os/Mutex.hpp>
Public Member Functions | |
| MutexCommon ()=default | |
| Constructor. Mutex is unlocked when created. More... | |
| ~MutexCommon ()=default | |
| Destructor. More... | |
| MutexCommon (const MutexCommon &other)=delete | |
| copy constructor is forbidden More... | |
| MutexCommon & | operator= (const MutexCommon &other)=delete |
| assignment operator is forbidden More... | |
| MutexHandle * | getHandle () |
| return the underlying mutex handle (implementation specific) More... | |
| Status | take () |
| lock the mutex and get return status More... | |
| Status | release () |
| unlock the mutex and get return status More... | |
| void | lock () |
| lock the mutex and assert success More... | |
| void | unLock () |
| unlock the mutex and assert success More... | |
| void | unlock () |
| alias for unLock to meet BasicLockable requirements More... | |
Additional Inherited Members | |
Public Types inherited from Os::MutexUserInterface | |
| enum | Status { OP_OK, ERROR_BUSY, ERROR_DEADLOCK, NOT_SUPPORTED, ERROR_OTHER } |
Os::Mutex wrapper around the implementation T selected at compile time.
Holds the implementation by value and forwards every operation to it. Os::Mutex is this class instantiated on the implementation selected in config/MutexSelection.hpp.
|
default |
Constructor. Mutex is unlocked when created.
|
default |
Destructor.
|
delete |
copy constructor is forbidden
| MutexHandle * Os::MutexCommon< T >::getHandle | ( | ) |
| void Os::MutexCommon< T >::lock | ( | ) |
|
delete |
assignment operator is forbidden
| MutexCommon< T >::Status Os::MutexCommon< T >::release | ( | ) |
| MutexCommon< T >::Status Os::MutexCommon< T >::take | ( | ) |
| void Os::MutexCommon< T >::unLock | ( | ) |
| void Os::MutexCommon< T >::unlock | ( | ) |