distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::ThisThread::Signals Namespace Reference

Signals-related functions operating on current thread. More...

Functions

int generateSignal (uint8_t signalNumber)
 Generates signal for current thread. More...
 
SignalSet getPendingSignalSet ()
 Gets set of currently pending signals for current thread. More...
 
std::pair< int, SignalActiongetSignalAction (uint8_t signalNumber)
 Gets SignalAction associated with given signal number. More...
 
SignalSet getSignalMask ()
 Gets signal mask for current thread. More...
 
int queueSignal (uint8_t signalNumber, sigval value)
 Queues signal for current thread. More...
 
std::pair< int, SignalActionsetSignalAction (uint8_t signalNumber, const SignalAction &signalAction)
 Sets association for given signal number. More...
 
int setSignalMask (SignalSet signalMask)
 Sets signal mask for current thread. More...
 
std::pair< int, SignalInformationtryWait (const SignalSet &signalSet)
 Tries to accept pending signals. More...
 
std::pair< int, SignalInformationtryWaitFor (const SignalSet &signalSet, TickClock::duration duration)
 Tries to wait for signals for given duration of time. More...
 
std::pair< int, SignalInformationtryWaitUntil (const SignalSet &signalSet, TickClock::time_point timePoint)
 Tries to wait for signals until given time point. More...
 
std::pair< int, SignalInformationwait (const SignalSet &signalSet)
 Waits for signals. More...
 
template<typename Rep , typename Period >
std::pair< int, SignalInformationtryWaitFor (const SignalSet &signalSet, const std::chrono::duration< Rep, Period > duration)
 Tries to wait for signals for given duration of time. More...
 
template<typename Duration >
std::pair< int, SignalInformationtryWaitUntil (const SignalSet &signalSet, const std::chrono::time_point< TickClock, Duration > timePoint)
 Tries to wait for signals until given time point. More...
 

Detailed Description

Signals-related functions operating on current thread.