12 #ifndef INCLUDE_DISTORTOS_FROMCAPI_HPP_ 13 #define INCLUDE_DISTORTOS_FROMCAPI_HPP_ 27 class ConditionVariable;
41 return reinterpret_cast<distortos::ConditionVariable&>(conditionVariable);
54 return reinterpret_cast<const distortos::ConditionVariable&>(conditionVariable);
67 return reinterpret_cast<distortos::Mutex&>(mutex);
80 return reinterpret_cast<const distortos::Mutex&>(mutex);
93 return reinterpret_cast<distortos::Semaphore&>(semaphore);
106 return reinterpret_cast<const distortos::Semaphore&>(semaphore);
111 #endif // INCLUDE_DISTORTOS_FROMCAPI_HPP_ ConditionVariable is an advanced synchronization primitive.
Definition: ConditionVariable.hpp:35
Semaphore is the basic synchronization primitive.
Definition: Semaphore.hpp:30
static distortos::ConditionVariable & fromCApi(distortos_ConditionVariable &conditionVariable)
Casts C-API distortos_ConditionVariable to distortos::ConditionVariable.
Definition: fromCApi.hpp:39
Top-level namespace of distortos project.
Definition: buttons.hpp:33
Mutex is the basic synchronization primitive.
Definition: Mutex.hpp:30
C-API equivalent of distortos::Semaphore.
Definition: Semaphore.h:42
C-API equivalent of distortos::ConditionVariable.
Definition: ConditionVariable.h:44
C-API equivalent of distortos::Mutex.
Definition: Mutex.h:43