![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
locks a mutex within the current scope More...
#include <Os/MutexInterface.hpp>
Public Member Functions | |
| ScopeLock (MutexInterface &mutex) | |
| construct the scope lock More... | |
| ~ScopeLock () | |
| unlock the scoped mutex More... | |
| ScopeLock (const ScopeLock &other)=delete | |
| copy constructor is forbidden More... | |
| ScopeLock (const ScopeLock *other)=delete | |
| copy constructor is forbidden More... | |
| ScopeLock & | operator= (const ScopeLock &other)=delete |
| assignment operator is forbidden More... | |
locks a mutex within the current scope
The scope lock will lock the associated mutex immediately and will ensure the mutex is unlock when the scope lock is destroyed.
Definition at line 88 of file MutexInterface.hpp.
|
inlineexplicit |
construct the scope lock
Will lock the supplied mutex and will unlock the mutex when this object goes out of scope.
| mutex |
Definition at line 94 of file MutexInterface.hpp.
|
inline |
unlock the scoped mutex
Definition at line 97 of file MutexInterface.hpp.
|
delete |
copy constructor is forbidden
|
delete |
copy constructor is forbidden
assignment operator is forbidden