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/Posix/DefaultMutex.cpp
3 // \brief sets default Os::Mutex Posix implementation via linker
4 // ======================================================================
5 #include "Os/Delegate.hpp"
7 #include "Os/Posix/Mutex.hpp"
8 namespace Os {
9 
14  return Os::Delegate::makeDelegate<MutexInterface, Os::Posix::Mutex::PosixMutex>(aligned_new_memory);
15 }
16 
21  ConditionVariableHandleStorage& aligned_new_memory) {
23  ConditionVariableHandleStorage>(aligned_new_memory);
24 }
25 } // namespace Os
ConditionVariableInterface()=default
Default constructor.
U8 ConditionVariableHandleStorage[FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE]
Definition: Os.hpp:17
interface for condition variables
Definition: Condition.hpp:20
Posix implementation of Os::ConditionVariable.
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