|
thread_supervisor
|
Inheritable supervisor simplifies starting class methods in separate threads.
Definition at line 490 of file supervisor.h.
#include <supervisor.h>
Public Member Functions | |
| const Supervisor< t_Logger > & | getThreadSupervisor () const |
| Supervisor< t_Logger > & | getThreadSupervisor () |
| virtual void | stopSupervisedThreads ()=0 |
| template<class... t_Args> | |
| void | addSupervisedThread (t_Args &&...args) |
| Add a thread: (<thread parameters>, <function pointer>, <this>, <function parameters>) More... | |
| bool | isThreadSupervisorInterrupted () const |
| Should be checked by threaded class methods. More... | |
Protected Member Functions | |
| ~InheritableSupervisor ()=default | |
Protected Attributes | |
| Supervisor< t_Logger > | thread_supervisor_ |
|
protecteddefault |
|
inline |
Add a thread: (<thread parameters>, <function pointer>, <this>, <function parameters>)
Definition at line 522 of file supervisor.h.
|
inline |
Definition at line 504 of file supervisor.h.
|
inline |
Definition at line 499 of file supervisor.h.
|
inline |
Should be checked by threaded class methods.
Definition at line 529 of file supervisor.h.
|
pure virtual |
should call stop(), pure virtual to remind that threads must be destructed properly at the right time, e.g., from a destructor
Implemented in anonymous_namespace{supervisor.cpp}::TestThreadSupervisor.
|
protected |
Definition at line 493 of file supervisor.h.