distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::ThisThread::Signals::anonymous_namespace{ThisThread-Signals.cpp} Namespace Reference

Classes

class  SignalsWaitUnblockFunctor
 SignalsWaitUnblockFunctor is a functor executed when unblocking a thread that is waiting for signal. More...
 

Functions

std::pair< int, SignalInformationwaitImplementation (const SignalSet &signalSet, const bool nonBlocking, const TickClock::time_point *const timePoint)
 Implementation of distortos::ThisThread::Signals::wait(), distortos::ThisThread::Signals::tryWait() and distortos::ThisThread::Signals::tryWaitUntil(). More...
 

Function Documentation

◆ waitImplementation()

std::pair<int, SignalInformation> distortos::ThisThread::Signals::anonymous_namespace{ThisThread-Signals.cpp}::waitImplementation ( const SignalSet signalSet,
const bool  nonBlocking,
const TickClock::time_point *const  timePoint 
)

Implementation of distortos::ThisThread::Signals::wait(), distortos::ThisThread::Signals::tryWait() and distortos::ThisThread::Signals::tryWaitUntil().

Warning
This function must not be called from interrupt context!
Parameters
[in]signalSetis a reference to set of signals that will be waited for
[in]nonBlockingselects whether this function operates in blocking mode (false) or non-blocking mode (true)
[in]timePointis a pointer to time point at which the wait for signals will be terminated, used only if blocking mode is selected, nullptr to block without timeout
Returns
pair with return code (0 on success, error code otherwise) and SignalInformation object for accepted signal; error codes:
Here is the call graph for this function:
Here is the caller graph for this function: