distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
SemaphoreTryWaitForFunctor class is a SemaphoreFunctor which calls Semaphore::tryWaitFor() with bound duration. More...
#include "distortos/internal/synchronization/SemaphoreTryWaitForFunctor.hpp"
Public Member Functions | |
constexpr | SemaphoreTryWaitForFunctor (const TickClock::duration duration) |
SemaphoreTryWaitForFunctor's constructor. More... | |
int | operator() (Semaphore &semaphore) const override |
Calls Semaphore::tryWaitFor() with bound duration. More... | |
Private Attributes | |
const TickClock::duration | duration_ |
bound duration for Semaphore::tryWaitFor() call More... | |
SemaphoreTryWaitForFunctor class is a SemaphoreFunctor which calls Semaphore::tryWaitFor() with bound duration.
|
inlineexplicit |
SemaphoreTryWaitForFunctor's constructor.
[in] | duration | is the bound duration for Semaphore::tryWaitFor() call |
|
override |
Calls Semaphore::tryWaitFor() with bound duration.
[in] | semaphore | is a reference to Semaphore object for which Semaphore::tryWaitFor() will be called |
|
private |
bound duration for Semaphore::tryWaitFor() call