12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHORETRYWAITFORFUNCTOR_HPP_ 13 #define INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHORETRYWAITFORFUNCTOR_HPP_ 62 #endif // INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHORETRYWAITFORFUNCTOR_HPP_ Semaphore is the basic synchronization primitive.
Definition: Semaphore.hpp:30
constexpr SemaphoreTryWaitForFunctor(const TickClock::duration duration)
SemaphoreTryWaitForFunctor's constructor.
Definition: SemaphoreTryWaitForFunctor.hpp:36
int operator()(Semaphore &semaphore) const override
Calls Semaphore::tryWaitFor() with bound duration.
Definition: SemaphoreTryWaitForFunctor.cpp:26
Top-level namespace of distortos project.
Definition: buttons.hpp:33
const TickClock::duration duration_
bound duration for Semaphore::tryWaitFor() call
Definition: SemaphoreTryWaitForFunctor.hpp:55
SemaphoreFunctor is a type-erased interface for functors which execute some action on semaphore (wait...
Definition: SemaphoreFunctor.hpp:34
std::chrono::duration< rep, period > duration
basic duration type of clock
Definition: TickClock.hpp:39
SemaphoreFunctor class header.
SemaphoreTryWaitForFunctor class is a SemaphoreFunctor which calls Semaphore::tryWaitFor() with bound...
Definition: SemaphoreTryWaitForFunctor.hpp:26