![]() |
API Documentation
|
Executes a queue of commands in a single thread. More...
#include <ThreadQueue.h>
Public Member Functions | |
| void | add (const std::function< void()> &callback) |
| void | run () override |
| ThreadQueue (const String &name) | |
Public Member Functions inherited from Thread | |
| 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 () |
Public Attributes | |
| Resource< bool > | sv_is_running |
Protected Attributes | |
| std::function< void(const char *const)> | m_error_callback |
| Buffer< std::function< void()> > | m_functions |
Protected Attributes inherited from Thread | |
| volatile bool | m_is_running = false |
| volatile bool | m_is_single_run = true |
Additional Inherited Members | |
Static Public Member Functions inherited from Thread | |
| static Thread & | CurrentThread () |
| static String | CurrentThreadName () |
| static void | ServiceVirtualThreads () |
| static void | SetCurrentThreadName (const String &name) |
| static void | StopAllThreads () |
Protected Member Functions inherited from Thread | |
| const std::thread & | self () |
Executes a queue of commands in a single thread.
|
explicit |
|
inline |
|
overridevirtual |
Reimplemented from Thread.
|
protected |
|
protected |
| Resource<bool> sv_is_running |