12 #ifndef INCLUDE_DISTORTOS_INTERNAL_NEWLIB_LOCKING_HPP_ 13 #define INCLUDE_DISTORTOS_INTERNAL_NEWLIB_LOCKING_HPP_ 19 #if defined(_RETARGETABLE_LOCKING) 38 extern __lock __lock___malloc_recursive_mutex;
42 #endif // defined(_RETARGETABLE_LOCKING) 60 #if defined(_RETARGETABLE_LOCKING) 62 return __lock___malloc_recursive_mutex;
64 #else // !defined(_RETARGETABLE_LOCKING) 69 #endif // !defined(_RETARGETABLE_LOCKING) 76 #endif // INCLUDE_DISTORTOS_INTERNAL_NEWLIB_LOCKING_HPP_
Top-level namespace of distortos project.
Definition: buttons.hpp:33
Mutex is the basic synchronization primitive.
Definition: Mutex.hpp:30
constexpr Mutex(const Type type=Type::normal, const Protocol protocol=Protocol::none, const uint8_t priorityCeiling={})
Mutex's constructor.
Definition: Mutex.hpp:69
constexpr Mutex & getMallocMutex()
Definition: locking.hpp:58
Mutex mallocMutexInstance
main instance of Mutex used for malloc() and free() locking
Definition: locking.cpp:195