distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
ThisThread-Signals.hpp File Reference

ThisThread::Signals namespace header. More...

#include "distortos/SignalInformation.hpp"
#include "distortos/TickClock.hpp"
#include <utility>
#include <cstdint>
Include dependency graph for ThisThread-Signals.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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

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...
 
template<typename Rep , typename Period >
std::pair< int, SignalInformation > distortos::ThisThread::Signals::tryWaitFor (const SignalSet &signalSet, const std::chrono::duration< Rep, Period > 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...
 
template<typename Duration >
std::pair< int, SignalInformation > distortos::ThisThread::Signals::tryWaitUntil (const SignalSet &signalSet, const std::chrono::time_point< TickClock, Duration > 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 header.

Author
Copyright (C) 2015-2017 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/.