![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Os/MutexInterface.hpp>
Public Types | |
| enum | Status { OP_OK, ERROR_BUSY, ERROR_DEADLOCK, NOT_SUPPORTED, ERROR_OTHER } |
Public Member Functions | |
| MutexInterface ()=default | |
| default constructor More... | |
| virtual | ~MutexInterface ()=default |
| default virtual destructor More... | |
| MutexInterface (const MutexInterface &other)=delete | |
| copy constructor is forbidden More... | |
| MutexInterface (const MutexInterface *other)=delete | |
| copy constructor is forbidden More... | |
| MutexInterface & | operator= (const MutexInterface &other)=delete |
| assignment operator is forbidden More... | |
| virtual MutexHandle * | getHandle ()=0 |
| return the underlying mutex handle (implementation specific) More... | |
| virtual Status | take ()=0 |
| lock the mutex return status More... | |
| virtual Status | release ()=0 |
| unlock the mutex 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... | |
Static Public Member Functions | |
| static MutexInterface * | getDelegate (MutexHandleStorage &aligned_new_memory) |
| provide a pointer to a Mutex delegate object More... | |
Definition at line 17 of file MutexInterface.hpp.
| Enumerator | |
|---|---|
| OP_OK | Operation was successful. |
| ERROR_BUSY | Mutex is busy. |
| ERROR_DEADLOCK | Deadlock condition detected. |
| NOT_SUPPORTED | Mutex does not support operation. |
| ERROR_OTHER | All other errors. |
Definition at line 19 of file MutexInterface.hpp.
|
default |
default constructor
|
virtualdefault |
default virtual destructor
|
delete |
copy constructor is forbidden
|
delete |
copy constructor is forbidden
|
static |
provide a pointer to a Mutex delegate object
get a delegate for MutexInterface that intercepts calls for stub file usage
get a delegate for MutexInterface that intercepts calls for Posix
| aligned_new_memory | aligned memory to fill |
| aligned_new_memory | aligned memory to fill |
| to_copy | pointer to copy-constructor input |
Definition at line 13 of file DefaultMutex.cpp.
|
pure virtual |
return the underlying mutex handle (implementation specific)
Implemented in Os::Stub::Mutex::StubMutex, Os::Posix::Mutex::PosixMutex, and Os::DelegateMutex.
|
inline |
lock the mutex and assert success
Definition at line 65 of file MutexInterface.hpp.
|
delete |
assignment operator is forbidden
|
pure virtual |
unlock the mutex return status
Implemented in Os::Stub::Mutex::StubMutex, Os::Posix::Mutex::PosixMutex, and Os::DelegateMutex.
|
pure virtual |
lock the mutex return status
Implemented in Os::Stub::Mutex::StubMutex, Os::Posix::Mutex::PosixMutex, and Os::DelegateMutex.
|
inline |
unlock the mutex and assert success
Definition at line 72 of file MutexInterface.hpp.
|
inline |
alias for unLock to meet BasicLockable requirements
Definition at line 79 of file MutexInterface.hpp.