|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Base class for thread objects. More...
#include <thread.h>
Public Member Functions | |
| bool | is_joinable () const |
| Check if thread was started and can be joined. | |
| ROC_ATTR_NODISCARD bool | start () |
| Start thread. | |
| void | join () |
| Join thread. | |
Static Public Member Functions | |
| static uint64_t | get_pid () |
| Get numeric identifier of current process. | |
| static uint64_t | get_tid () |
| Get numeric identifier of current thread. | |
| static ROC_ATTR_NODISCARD bool | enable_realtime () |
| Raise current thread priority to realtime. | |
Protected Member Functions | |
| virtual void | run ()=0 |
| Method to be executed in thread. | |
|
static |
Raise current thread priority to realtime.
| bool roc::core::Thread::is_joinable | ( | ) | const |
| void roc::core::Thread::join | ( | ) |
Join thread.
| ROC_ATTR_NODISCARD bool roc::core::Thread::start | ( | ) |
Start thread.