F´ Flight Software - C/C++ Documentation
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/Stub/DefaultMutex.cpp
3 // \brief sets default Os::Mutex to no-op stub implementation via linker
4 // ======================================================================
5 #include "Os/Delegate.hpp"
7 #include "Os/Stub/Mutex.hpp"
8 namespace Os {
9 
14 MutexInterface* MutexInterface::getDelegate(MutexHandleStorage& aligned_new_memory) {
15  return Os::Delegate::makeDelegate<MutexInterface, Os::Stub::Mutex::StubMutex>(aligned_new_memory);
16 }
17 
21 ConditionVariableInterface* ConditionVariableInterface::getDelegate(
22  ConditionVariableHandleStorage& aligned_new_memory) {
24  ConditionVariableHandleStorage>(aligned_new_memory);
25 }
26 } // namespace Os
ConditionVariableInterface()=default
Default constructor.
Stub implementation of Os::ConditionVariable.
U8 ConditionVariableHandleStorage[FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE]
Definition: Os.hpp:17
static ConditionVariableInterface * getDelegate(ConditionVariableHandleStorage &aligned_new_memory)
provide a pointer to a Mutex delegate object
U8 MutexHandleStorage[FW_MUTEX_HANDLE_MAX_SIZE]
Definition: Os.hpp:12
static MutexInterface * getDelegate(MutexHandleStorage &aligned_new_memory)
provide a pointer to a Mutex delegate object
Interface * makeDelegate(StorageType &aligned_new_memory)
Make a delegate of type Interface using Implementation without copy-constructor support (generic func...
Definition: Delegate.hpp:46