Base class for thread objects.
More...
#include <thread.h>
|
bool | joinable () const |
| Check if thread was started and can be joined.
|
|
bool | start () |
| Start thread.
|
|
void | join () |
| Join thread.
|
|
|
static uint64_t | get_pid () |
| Get numeric identifier of current process.
|
|
static uint64_t | get_tid () |
| Get numeric identifier of current thread.
|
|
static bool | set_realtime () |
| Raise current thread priority to realtime.
|
|
|
virtual void | run ()=0 |
| Method to be executed in thread.
|
|
Base class for thread objects.
Definition at line 26 of file thread.h.
◆ get_pid()
static uint64_t roc::core::Thread::get_pid |
( |
| ) |
|
|
static |
Get numeric identifier of current process.
◆ get_tid()
static uint64_t roc::core::Thread::get_tid |
( |
| ) |
|
|
static |
Get numeric identifier of current thread.
◆ join()
void roc::core::Thread::join |
( |
| ) |
|
◆ joinable()
bool roc::core::Thread::joinable |
( |
| ) |
const |
Check if thread was started and can be joined.
- Returns
- true if start() was called and join() was not called yet.
◆ run()
virtual void roc::core::Thread::run |
( |
| ) |
|
|
protectedpure virtual |
Method to be executed in thread.
◆ set_realtime()
static bool roc::core::Thread::set_realtime |
( |
| ) |
|
|
static |
Raise current thread priority to realtime.
◆ start()
bool roc::core::Thread::start |
( |
| ) |
|
The documentation for this class was generated from the following file: