F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
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"
7 #include "Os/Delegate.hpp"
8 namespace Os {
9 
14  return Os::Delegate::makeDelegate<MutexInterface, Os::Posix::Mutex::PosixMutex>(
15  aligned_new_memory
16  );
17 }
18 
23  return Os::Delegate::makeDelegate<ConditionVariableInterface, Os::Posix::Mutex::PosixConditionVariable, ConditionVariableHandleStorage>(
24  aligned_new_memory
25  );
26 }
27 }
U8 ConditionVariableHandleStorage[FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE]
Definition: Os.hpp:17
U8 MutexHandleStorage[FW_MUTEX_HANDLE_MAX_SIZE]
Definition: Os.hpp:12
interface for condition variables
Definition: Condition.hpp:20
static ConditionVariableInterface * getDelegate(ConditionVariableHandleStorage &aligned_new_memory)
provide a pointer to a Mutex delegate object
static MutexInterface * getDelegate(MutexHandleStorage &aligned_new_memory)
provide a pointer to a Mutex delegate object