distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
ThisThread-Signals.cpp File Reference

ThisThread::Signals namespace implementation. More...

Include dependency graph for ThisThread-Signals.cpp:

Classes

class  distortos::ThisThread::Signals::anonymous_namespace{ThisThread-Signals.cpp}::SignalsWaitUnblockFunctor
 SignalsWaitUnblockFunctor is a functor executed when unblocking a thread that is waiting for signal. More...
 

Namespaces

 distortos
 Top-level namespace of distortos project.
 
 distortos::ThisThread
 Functions that can be used to control current thread.
 
 distortos::ThisThread::Signals
 Signals-related functions operating on current thread.
 

Functions

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(). More...
 
int distortos::ThisThread::Signals::generateSignal (uint8_t signalNumber)
 Generates signal for current thread. More...
 
SignalSet distortos::ThisThread::Signals::getPendingSignalSet ()
 Gets set of currently pending signals for current thread. More...
 
std::pair< int, SignalAction > distortos::ThisThread::Signals::getSignalAction (uint8_t signalNumber)
 Gets SignalAction associated with given signal number. More...
 
SignalSet distortos::ThisThread::Signals::getSignalMask ()
 Gets signal mask for current thread. More...
 
int distortos::ThisThread::Signals::queueSignal (uint8_t signalNumber, sigval value)
 Queues signal for current thread. More...
 
std::pair< int, SignalAction > distortos::ThisThread::Signals::setSignalAction (uint8_t signalNumber, const SignalAction &signalAction)
 Sets association for given signal number. More...
 
int distortos::ThisThread::Signals::setSignalMask (SignalSet signalMask)
 Sets signal mask for current thread. More...
 
std::pair< int, SignalInformation > distortos::ThisThread::Signals::tryWait (const SignalSet &signalSet)
 Tries to accept pending signals. More...
 
std::pair< int, SignalInformation > distortos::ThisThread::Signals::tryWaitFor (const SignalSet &signalSet, TickClock::duration duration)
 Tries to wait for signals for given duration of time. More...
 
std::pair< int, SignalInformation > distortos::ThisThread::Signals::tryWaitUntil (const SignalSet &signalSet, TickClock::time_point timePoint)
 Tries to wait for signals until given time point. More...
 
std::pair< int, SignalInformation > distortos::ThisThread::Signals::wait (const SignalSet &signalSet)
 Waits for signals. More...
 

Detailed Description

ThisThread::Signals namespace implementation.

Author
Copyright (C) 2015-2019 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.