distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
SemaphoreFunctor is a type-erased interface for functors which execute some action on semaphore (wait(), tryWait(), tryWaitFor(), tryWaitUntil(), ...). More...
#include "distortos/internal/synchronization/SemaphoreFunctor.hpp"
SemaphoreFunctor is a type-erased interface for functors which execute some action on semaphore (wait(), tryWait(), tryWaitFor(), tryWaitUntil(), ...).
The functor will be called with one argument - semaphore - which is a reference to Semaphore object on which the action will be executed. Functor's operator should return 0 if the action was executed successfully, error code otherwise.