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

ThisThread namespace implementation. More...

Include dependency graph for ThisThread.cpp:


 Top-level namespace of distortos project.
 Functions that can be used to control current thread.


int distortos::ThisThread::detach ()
 Detaches calling (current) thread. More...
Thread & distortos::ThisThread::get ()
uint8_t distortos::ThisThread::getEffectivePriority ()
uint8_t distortos::ThisThread::getPriority ()
SchedulingPolicy distortos::ThisThread::getSchedulingPolicy ()
size_t distortos::ThisThread::getStackHighWaterMark ()
size_t distortos::ThisThread::getStackSize ()
void distortos::ThisThread::setPriority (uint8_t priority, bool alwaysBehind={})
void distortos::ThisThread::setSchedulingPolicy (SchedulingPolicy schedulingPolicy)
int distortos::ThisThread::sleepFor (TickClock::duration duration)
 Makes the calling (current) thread sleep for at least given duration. More...
int distortos::ThisThread::sleepUntil (TickClock::time_point timePoint)
 Makes the calling (current) thread sleep until some time point is reached. More...
void distortos::ThisThread::yield ()
 Yields time slot of the scheduler to next thread. More...

Detailed Description

ThisThread namespace implementation.

Copyright (C) 2014-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
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/.