F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
MutexSelection.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title config/MutexSelection.hpp
3 // \brief selection of Posix::Mutex::PosixMutex as the Os::Mutex implementation
4 //
5 // Supplied as one of the CONFIGURATION_HEADERS of the implementation module: the build system places this file at
6 // config/MutexSelection.hpp when that implementation is chosen (CHOOSES_IMPLEMENTATIONS in register_fprime_config).
7 // Os/Mutex.hpp then defines Os::Mutex as Os::MutexCommon<Os::Selected::Mutex>.
8 //
9 // Mutex and ConditionVariable are supplied by the same implementation module: a condition variable implementation may
10 // operate on the handle of the selected Os::Mutex, so the two are always selected as a pair.
11 // ======================================================================
12 #ifndef CONFIG_MUTEXSELECTION_HPP
13 #define CONFIG_MUTEXSELECTION_HPP
14 
15 #include <Os/Posix/Mutex.hpp>
16 
17 namespace Os {
18 namespace Selected {
19 using Mutex = Posix::Mutex::PosixMutex;
20 } // namespace Selected
21 } // namespace Os
22 
23 #endif // CONFIG_MUTEXSELECTION_HPP
Posix::Mutex::PosixMutex Mutex