roo_threads
API Documentation for roo_threads
Loading...
Searching...
No Matches
roo_threads::doc::this_thread Namespace Reference

Functions

thread::id get_id () noexcept
 Returns identifier of the current thread.
 
void yield () noexcept
 Hints the scheduler to run another thread.
 
void sleep_for (const roo_time::Duration &duration)
 Blocks the current thread for at least the given duration.
 
void sleep_until (const roo_time::Uptime &when)
 Blocks the current thread until the specified time point.