12#ifndef ROC_CORE_THREAD_H_
13#define ROC_CORE_THREAD_H_
58 virtual void run() = 0;
61 static void* thread_runner_(
void* ptr);
Atomic integer. Provides sequential consistency. For a fine-grained memory order control,...
Base class for non-copyable objects.
Base class for thread objects.
bool start()
Start thread.
static bool set_realtime()
Raise current thread priority to realtime.
virtual void run()=0
Method to be executed in thread.
static uint64_t get_tid()
Get numeric identifier of current thread.
static uint64_t get_pid()
Get numeric identifier of current process.
bool joinable() const
Check if thread was started and can be joined.
Commonly used types and functions.