µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os-thread.h File Reference

Go to the source code of this file.

Classes

class  os::rtos::thread::attributes
 Thread attributes. More...
 
class  os::rtos::thread::context
 Thread context. More...
 
struct  os::rtos::thread::priority
 Thread priorities. More...
 
class  os::rtos::thread::stack
 Thread stack. More...
 
struct  os::rtos::thread::state
 Thread states. More...
 
class  os::rtos::thread::statistics
 Thread statistics. More...
 
class  os::rtos::thread
 POSIX compliant thread, using the default RTOS allocator. More...
 
class  os::rtos::thread_allocated< Allocator >
 Template of a POSIX compliant thread with allocator. More...
 
class  os::rtos::thread_inclusive< N >
 Template of a POSIX compliant thread with local stack. More...
 

Namespaces

namespace  os
 System namespace.
 
namespace  os::rtos
 RTOS namespace.
 
namespace  os::rtos::scheduler
 Scheduler namespace.
 
namespace  os::rtos::this_thread
 A convenience namespace to access the current running thread.
 

Functions

int * os::rtos::this_thread::__errno (void)
 Implementation of the library __errno() function.
 
void os::rtos::this_thread::exit (void *exit_ptr=nullptr)
 Terminate the current running thread.
 
result_t os::rtos::this_thread::flags_clear (flags::mask_t mask, flags::mask_t *oflags=nullptr)
 Clear thread event flags.
 
flags::mask_t os::rtos::this_thread::flags_get (flags::mask_t mask, flags::mode_t mode=flags::mode::all|flags::mode::clear)
 Get/clear thread event flags.
 
result_t os::rtos::this_thread::flags_timed_wait (flags::mask_t mask, clock::duration_t timeout, flags::mask_t *oflags=nullptr, flags::mode_t mode=flags::mode::all|flags::mode::clear)
 Timed wait for thread event flags.
 
result_t os::rtos::this_thread::flags_try_wait (flags::mask_t mask, flags::mask_t *oflags=nullptr, flags::mode_t mode=flags::mode::all|flags::mode::clear)
 Try to wait for thread event flags.
 
result_t os::rtos::this_thread::flags_wait (flags::mask_t mask, flags::mask_t *oflags=nullptr, flags::mode_t mode=flags::mode::all|flags::mode::clear)
 Wait for thread event flags.
 
void os::rtos::this_thread::suspend (void)
 Suspend the current running thread to wait for an event.
 
threados::rtos::this_thread::thread (void)
 Get the current running thread.
 
void os::rtos::this_thread::yield (void)
 Yield execution to the next ready thread.