roo_threads
API Documentation for roo_threads
Loading...
Searching...
No Matches
thread_api.h File Reference
#include <cstdint>
#include "roo_time.h"
Include dependency graph for thread_api.h:

Go to the source code of this file.

Data Structures

class  roo_threads::doc::thread
 Canonical documentation-only thread API. More...
 
class  roo_threads::doc::thread::attributes
 Optional thread attributes used by backend-specific constructors. More...
 
class  roo_threads::doc::thread::id
 

Namespaces

namespace  roo_threads
 
namespace  roo_threads::doc
 
namespace  roo_threads::doc::this_thread
 

Functions

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