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

Go to the source code of this file.

Classes

class  thread::id
 Thread unique id. More...
 
class  thread
 Standard thread. More...
 

Namespaces

namespace  this_thread
 A namespace for functions applying to the current thread.
 

Functions

thread::id this_thread::get_id () noexcept
 Return the id of the current running thread.
 
bool operator!= (thread::id x, thread::id y) noexcept
 
bool operator< (thread::id x, thread::id y) noexcept
 
bool operator<= (thread::id x, thread::id y) noexcept
 
bool operator== (thread::id x, thread::id y) noexcept
 
bool operator> (thread::id x, thread::id y) noexcept
 
bool operator>= (thread::id x, thread::id y) noexcept
 
template<typename Clock_T = os::estd::chrono::systick_clock, typename Rep_T , typename Period_T >
constexpr void this_thread::sleep_for (const std::chrono::duration< Rep_T, Period_T > &rel_time)
 Sleep for a given duration.
 
template<typename Clock_T , typename Duration_T >
void this_thread::sleep_until (const std::chrono::time_point< Clock_T, Duration_T > &abs_time)
 Sleep until a given time point.
 
template<typename Duration_T >
void this_thread::sleep_until (const std::chrono::time_point< os::estd::chrono::realtime_clock, Duration_T > &abs_time)
 
template<typename Duration_T >
void this_thread::sleep_until (const std::chrono::time_point< os::estd::chrono::systick_clock, Duration_T > &abs_time)
 
void swap (thread &x, thread &y) noexcept
 
void this_thread::yield () noexcept
 Yield the CPU to the next ready thread.
 

Function Documentation

◆ operator!=()

bool operator!= ( thread::id  x,
thread::id  y 
)
inlinenoexcept

Definition at line 256 of file thread_internal.h.

◆ operator<()

bool operator< ( thread::id  x,
thread::id  y 
)
inlinenoexcept

Definition at line 261 of file thread_internal.h.

◆ operator<=()

bool operator<= ( thread::id  x,
thread::id  y 
)
inlinenoexcept

Definition at line 267 of file thread_internal.h.

◆ operator==()

bool operator== ( thread::id  x,
thread::id  y 
)
inlinenoexcept

Definition at line 250 of file thread_internal.h.

◆ operator>()

bool operator> ( thread::id  x,
thread::id  y 
)
inlinenoexcept

Definition at line 274 of file thread_internal.h.

◆ operator>=()

bool operator>= ( thread::id  x,
thread::id  y 
)
inlinenoexcept

Definition at line 280 of file thread_internal.h.

◆ swap()

void swap ( thread x,
thread y 
)
inlinenoexcept

Definition at line 244 of file thread_internal.h.