distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::internal::SemaphoreFunctor Class Reference

SemaphoreFunctor is a type-erased interface for functors which execute some action on semaphore (wait(), tryWait(), tryWaitFor(), tryWaitUntil(), ...). More...

#include <SemaphoreFunctor.hpp>

Inheritance diagram for distortos::internal::SemaphoreFunctor:
[legend]
Collaboration diagram for distortos::internal::SemaphoreFunctor:
[legend]

Detailed Description

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 zero if the action was executed successfully, error code otherwise.


The documentation for this class was generated from the following file: