![]() |
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 () |
Protected Attributes | |
| volatile bool | m_is_running = false |
| volatile bool | m_is_single_run = true |
A thread is a single sequence stream within the software.
| Thread | ( | ) |
|
virtual |
|
static |
|
static |
| void detach | ( | ) |
|
inline |
| bool isPrimaryThread | ( | ) | const |
| bool isRunning | ( | ) | const |
| void join | ( | ) |
|
virtual |
|
inlineprotectedvirtual |
Reimplemented in BasicThread, CachedFactoryIOThread, and ThreadQueue.
|
protected |
|
static |
|
static |
| void setIsPrimaryThread | ( | bool | is_primary_thread | ) |
| void setThreadName | ( | const String & | name | ) |
|
virtual |
| void start | ( | ) |
|
static |
|
virtual |
Reimplemented in CachedFactoryIOThread.
|
inline |
|
protected |
|
protected |