Thread and current-thread utilities.
More...
Thread and current-thread utilities.
◆ get_id()
| thread::id roo_threads::doc::this_thread::get_id |
( |
| ) |
|
|
noexcept |
Returns identifier of the current thread.
◆ sleep_for()
| void roo_threads::doc::this_thread::sleep_for |
( |
const roo_time::Duration & |
duration | ) |
|
Blocks the current thread for at least the given duration.
- Parameters
-
◆ sleep_until()
| void roo_threads::doc::this_thread::sleep_until |
( |
const roo_time::Uptime & |
when | ) |
|
Blocks the current thread until the specified time point.
- Parameters
-
◆ yield()
| void roo_threads::doc::this_thread::yield |
( |
| ) |
|
|
noexcept |
Hints the scheduler to run another thread.