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/Stub/DefaultMutex.cpp
3// \brief sets default Os::Mutex to no-op stub implementation via linker
4// ======================================================================
5#include "Os/Stub/Mutex.hpp"
7#include "Os/Delegate.hpp"
8namespace Os {
9
14MutexInterface *MutexInterface::getDelegate(MutexHandleStorage& aligned_new_memory) {
15 return Os::Delegate::makeDelegate<MutexInterface, Os::Stub::Mutex::StubMutex>(
16 aligned_new_memory
17 );
18}
19
23ConditionVariableInterface *ConditionVariableInterface::getDelegate(ConditionVariableHandleStorage& aligned_new_memory) {
24 return Os::Delegate::makeDelegate<ConditionVariableInterface, Os::Stub::Mutex::StubConditionVariable, ConditionVariableHandleStorage>(
25 aligned_new_memory
26 );
27}
28}
U8 ConditionVariableHandleStorage[FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE]
Definition Os.hpp:17
U8 MutexHandleStorage[FW_MUTEX_HANDLE_MAX_SIZE]
Definition Os.hpp:12
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