API Documentation
|
A thread is a single sequence stream within the software. More...
#include <Thread.h>
Public Member Functions | |
void | detach () |
void | forceStop () |
bool | isPrimaryThread () const |
bool | isRunning () const |
void | join () |
virtual void | requestStopThread () |
void | setIsPrimaryThread (bool is_primary_thread) |
void | setThreadName (const String &name) |
virtual bool | shouldExitThread () const |
void | start () |
virtual void | stopThread () |
Thread () | |
Thread (const String &name) | |
Thread (const Thread &name)=delete | |
const String & | threadName () const |
virtual | ~Thread () |
Static Public Member Functions | |
static Thread & | CurrentThread () |
static String | CurrentThreadName () |
static void | ServiceVirtualThreads () |
static void | SetCurrentThreadName (const String &name) |
static void | StopAllThreads () |
Protected Member Functions | |
virtual void | run () |
const std::thread & | self () |
Static Protected Member Functions | |
static void | _setThreadName (const String &name) |
static uint08 | GetThreadCount () |
Protected Attributes | |
volatile bool | m_is_running = false |
volatile bool | m_is_single_run = true |
Thread | ( | ) |
|
virtual |
|
staticprotected |
|
static |
|
static |
void detach | ( | ) |
|
inline |
|
inlinestaticprotected |
bool isPrimaryThread | ( | ) | const |
bool isRunning | ( | ) | const |
void join | ( | ) |
|
virtual |
|
inlineprotectedvirtual |
Reimplemented in AsciiWriteThread, BasicThread, CachedFactoryIOThread, DesignCalcThread, QModelViewCaptureThread, RenderThread, and ThreadQueue.
|
protected |
|
static |
|
static |
void setIsPrimaryThread | ( | bool | is_primary_thread | ) |
void setThreadName | ( | const String & | name | ) |
|
virtual |
Reimplemented in DesignCalcThread, QModelViewCaptureThread, and RenderThread.
void start | ( | ) |
|
static |
|
virtual |
Reimplemented in AsciiWriteThread, and CachedFactoryIOThread.
|
inline |
|
protected |
|
protected |