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

#include <SemaphoreTryWaitUntilFunctor.hpp>

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

Public Member Functions

constexpr SemaphoreTryWaitUntilFunctor (const TickClock::time_point timePoint)
 SemaphoreTryWaitUntilFunctor's constructor. More...
 
int operator() (Semaphore &semaphore) const override
 Calls Semaphore::tryWaitUntil() with bound time point. More...
 

Private Attributes

const TickClock::time_point timePoint_
 bound time point for Semaphore::tryWaitUntil() call More...
 

Detailed Description

SemaphoreTryWaitUntilFunctor class is a SemaphoreFunctor which calls Semaphore::tryWaitUntil() with bound time point

Constructor & Destructor Documentation

◆ SemaphoreTryWaitUntilFunctor()

constexpr distortos::internal::SemaphoreTryWaitUntilFunctor::SemaphoreTryWaitUntilFunctor ( const TickClock::time_point  timePoint)
inlineexplicit

SemaphoreTryWaitUntilFunctor's constructor.

Parameters
[in]timePointis the bound time point for Semaphore::tryWaitUntil() call
Here is the call graph for this function:

Member Function Documentation

◆ operator()()

int distortos::internal::SemaphoreTryWaitUntilFunctor::operator() ( Semaphore semaphore) const
override

Calls Semaphore::tryWaitUntil() with bound time point.

Parameters
[in]semaphoreis a reference to Semaphore object for which Semaphore::tryWaitUntil() will be called
Returns
value returned by Semaphore::tryWaitUntil()
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ timePoint_

const TickClock::time_point distortos::internal::SemaphoreTryWaitUntilFunctor::timePoint_
private

bound time point for Semaphore::tryWaitUntil() call


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