12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHORETRYWAITUNTILFUNCTOR_HPP_ 13 #define INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHORETRYWAITUNTILFUNCTOR_HPP_ 63 #endif // INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHORETRYWAITUNTILFUNCTOR_HPP_ Semaphore is the basic synchronization primitive.
Definition: Semaphore.hpp:30
std::chrono::time_point< TickClock > time_point
basic time_point type of clock
Definition: TickClock.hpp:42
constexpr SemaphoreTryWaitUntilFunctor(const TickClock::time_point timePoint)
SemaphoreTryWaitUntilFunctor's constructor.
Definition: SemaphoreTryWaitUntilFunctor.hpp:37
Definition: SemaphoreTryWaitUntilFunctor.hpp:27
Top-level namespace of distortos project.
Definition: buttons.hpp:33
int operator()(Semaphore &semaphore) const override
Calls Semaphore::tryWaitUntil() with bound time point.
Definition: SemaphoreTryWaitUntilFunctor.cpp:26
SemaphoreFunctor is a type-erased interface for functors which execute some action on semaphore (wait...
Definition: SemaphoreFunctor.hpp:34
SemaphoreFunctor class header.
const TickClock::time_point timePoint_
bound time point for Semaphore::tryWaitUntil() call
Definition: SemaphoreTryWaitUntilFunctor.hpp:56