distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
SemaphoreWaitFunctor.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHOREWAITFUNCTOR_HPP_
13 #define INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHOREWAITFUNCTOR_HPP_
14 
16 
17 namespace distortos
18 {
19 
20 namespace internal
21 {
22 
25 {
26 public:
27 
36  int operator()(Semaphore& semaphore) const override;
37 };
38 
39 } // namespace internal
40 
41 } // namespace distortos
42 
43 #endif // INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHOREWAITFUNCTOR_HPP_
Semaphore is the basic synchronization primitive.
Definition: Semaphore.hpp:30
Top-level namespace of distortos project.
SemaphoreFunctor is a type-erased interface for functors which execute some action on semaphore (wait...
Definition: SemaphoreFunctor.hpp:34
int operator()(Semaphore &semaphore) const override
Calls Semaphore::wait()
Definition: SemaphoreWaitFunctor.cpp:26
SemaphoreFunctor class header.
SemaphoreWaitFunctor class is a SemaphoreFunctor which calls Semaphore::wait()
Definition: SemaphoreWaitFunctor.hpp:24