F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Mutex.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title Os/Stub/Mutex.cpp
3
// \brief stub implementation for Os::Mutex
4
// ======================================================================
5
#include "
Os/Stub/Mutex.hpp
"
6
7
namespace
Os
{
8
namespace
Stub {
9
namespace
Mutex {
10
11
StubMutex::Status
StubMutex::take
() {
12
return
Status::OP_OK
;
13
}
14
15
StubMutex::Status
StubMutex::release
() {
16
return
Status::OP_OK
;
17
}
18
19
MutexHandle
*
StubMutex::getHandle
() {
20
return
&this->m_handle;
21
}
22
}
// namespace Mutex
23
}
// namespace Stub
24
}
// namespace Os
Mutex.hpp
Os::MutexInterface::Status
Status
Definition:
Mutex.hpp:17
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::take
Status take() override
lock the mutex and get return status
Definition:
Mutex.cpp:11
Os::Generic::OP_OK
@ OP_OK
Operation succeeded.
Definition:
Os.hpp:26
Os
Definition:
DirectoryOpenModeEnumAc.cpp:13
Os::MutexHandle
Definition:
Mutex.hpp:13
Os
Stub
Mutex.cpp
Generated by
1.9.1