F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Mutex.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title Os/Stub/Mutex.hpp
3
// \brief stub definitions for Os::Mutex
4
// ======================================================================
5
#include "
Os/Mutex.hpp
"
6
7
#ifndef OS_STUB_MUTEX_HPP
8
#define OS_STUB_MUTEX_HPP
9
namespace
Os
{
10
namespace
Stub {
11
namespace
Mutex {
12
13
struct
StubMutexHandle
:
public
MutexHandle
{};
14
19
class
StubMutex
:
public
MutexInterface
{
20
public
:
23
StubMutex
() =
default
;
24
27
~StubMutex
()
override
=
default
;
28
31
MutexHandle
*
getHandle
()
override
;
32
33
Status
take
()
override
;
34
Status
release
()
override
;
35
36
private
:
38
StubMutexHandle
m_handle;
39
};
40
41
}
// namespace Mutex
42
}
// namespace Stub
43
}
// namespace Os
44
#endif
// OS_STUB_MUTEX_HPP
Mutex.hpp
Os::MutexInterface
Definition:
Mutex.hpp:15
Os::MutexInterface::Status
Status
Definition:
Mutex.hpp:17
Os::Stub::Mutex::StubMutex
stub implementation of Os::Mutex
Definition:
Mutex.hpp:19
Os::Stub::Mutex::StubMutex::getHandle
MutexHandle * getHandle() override
return the underlying mutex handle (implementation specific)
Definition:
Mutex.cpp:19
Os::Stub::Mutex::StubMutex::release
Status release() override
unlock the mutex and get return status
Definition:
Mutex.cpp:15
Os::Stub::Mutex::StubMutex::StubMutex
StubMutex()=default
constructor
Os::Stub::Mutex::StubMutex::~StubMutex
~StubMutex() override=default
destructor
Os::Stub::Mutex::StubMutex::take
Status take() override
lock the mutex and get return status
Definition:
Mutex.cpp:11
Os
Definition:
DirectoryOpenModeEnumAc.cpp:13
Os::MutexHandle
Definition:
Mutex.hpp:13
Os::Stub::Mutex::StubMutexHandle
Definition:
Mutex.hpp:13
Os
Stub
Mutex.hpp
Generated by
1.9.1