F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
DefaultMutex.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title Os/Posix/DefaultMutex.cpp
3
// \brief sets default Os::Mutex Posix implementation via linker
4
// ======================================================================
5
#include "
Os/Posix/Mutex.hpp
"
6
#include "
Os/Posix/ConditionVariable.hpp
"
7
#include "
Os/Delegate.hpp
"
8
namespace
Os
{
9
13
MutexInterface
*
MutexInterface::getDelegate
(
MutexHandleStorage
& aligned_new_memory) {
14
return
Os::Delegate::makeDelegate<MutexInterface, Os::Posix::Mutex::PosixMutex>(
15
aligned_new_memory
16
);
17
}
18
22
ConditionVariableInterface
*
ConditionVariableInterface::getDelegate
(
ConditionVariableHandleStorage
& aligned_new_memory) {
23
return
Os::Delegate::makeDelegate<ConditionVariableInterface, Os::Posix::Mutex::PosixConditionVariable, ConditionVariableHandleStorage>(
24
aligned_new_memory
25
);
26
}
27
}
Delegate.hpp
ConditionVariableHandleStorage
U8 ConditionVariableHandleStorage[FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE]
Definition
Os.hpp:17
MutexHandleStorage
U8 MutexHandleStorage[FW_MUTEX_HANDLE_MAX_SIZE]
Definition
Os.hpp:12
ConditionVariable.hpp
Mutex.hpp
Os::ConditionVariableInterface
interface for condition variables
Definition
Condition.hpp:20
Os::ConditionVariableInterface::getDelegate
static ConditionVariableInterface * getDelegate(ConditionVariableHandleStorage &aligned_new_memory)
provide a pointer to a Mutex delegate object
Definition
DefaultMutex.cpp:22
Os::MutexInterface
Definition
Mutex.hpp:15
Os::MutexInterface::getDelegate
static MutexInterface * getDelegate(MutexHandleStorage &aligned_new_memory)
provide a pointer to a Mutex delegate object
Definition
DefaultMutex.cpp:13
Os
Definition
DirectoryOpenModeEnumAc.cpp:13
Os
Posix
DefaultMutex.cpp
Generated by
1.9.8