F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Mutex.hpp
Go to the documentation of this file.
1#ifndef _Mutex_hpp_
2#define _Mutex_hpp_
3
4#include <FpConfig.hpp>
5
6namespace Os {
7
8 class Mutex {
9 public:
10
11 Mutex();
12 virtual ~Mutex();
13
14 void lock();
15 void unLock();
16 void unlock() { this->unLock(); }
17
18 private:
19
20 POINTER_CAST m_handle;
21 };
22}
23
24#endif
PlatformPointerCastType POINTER_CAST
Definition BasicTypes.h:53
C++-compatible configuration header for fprime configuration.
virtual ~Mutex()
Destructor.
Definition Mutex.cpp:11
void unlock()
alias for unLock to meet BasicLockable requirements
Definition Mutex.hpp:16
void unLock()
unlock the mutex
Definition Mutex.cpp:13
void lock()
lock the mutex
Definition Mutex.cpp:12
Mutex()
Constructor. Mutex is unlocked when created.
Definition Mutex.cpp:7
Definition File.cpp:6