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 
12  return Status::OP_OK;
13  }
14 
16  return Status::OP_OK;
17  }
18 
20  return &this->m_handle;
21  }
22 } // namespace Mutex
23 } // namespace Stub
24 } // namespace Os
MutexHandle * getHandle() override
return the underlying mutex handle (implementation specific)
Definition: Mutex.cpp:19
Status release() override
unlock the mutex and get return status
Definition: Mutex.cpp:15
Status take() override
lock the mutex and get return status
Definition: Mutex.cpp:11
@ OP_OK
Operation succeeded.
Definition: Os.hpp:26