distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
SemaphoreTryWaitFunctor.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHORETRYWAITFUNCTOR_HPP_
13 #define INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SEMAPHORETRYWAITFUNCTOR_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_SEMAPHORETRYWAITFUNCTOR_HPP_
Semaphore is the basic synchronization primitive.
Definition: Semaphore.hpp:30
SemaphoreTryWaitFunctor class is a SemaphoreFunctor which calls Semaphore::tryWait()
Definition: SemaphoreTryWaitFunctor.hpp:24
Top-level namespace of distortos project.
Definition: buttons.hpp:33
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::tryWait()
Definition: SemaphoreTryWaitFunctor.cpp:26
SemaphoreFunctor class header.