|
thread_supervisor
|
Thread parameters.
Definition at line 55 of file supervisor.h.
#include <supervisor.h>
Classes | |
| class | Restart |
| Restarting parameters. More... | |
| class | Scheduling |
| Scheduling parameters, POSIX threads only, see pthread_setschedparam. More... | |
Public Types | |
| enum class | TerminationPolicy { IGNORE , KILLALL } |
| What to do when thread terminated. More... | |
| enum class | ExceptionPolicy { CATCH , PASS } |
| Exception handling policy. More... | |
Public Member Functions | |
| template<class... t_Args> | |
| Parameters (const Restart &&restart, t_Args &&...args) | |
| template<class... t_Args> | |
| Parameters (const Scheduling &&scheduling, t_Args &&...args) | |
| template<class... t_Args> | |
| Parameters (const TerminationPolicy termination_policy, t_Args &&...args) | |
| template<class... t_Args> | |
| Parameters (const ExceptionPolicy exception_policy, t_Args &&...args) | |
| Parameters ()=default | |
Public Attributes | |
| Restart | restart_ |
| Scheduling | scheduling_ |
| TerminationPolicy | termination_policy_ = TerminationPolicy::IGNORE |
| do not allow threads to exit / crash quietly More... | |
| ExceptionPolicy | exception_policy_ = ExceptionPolicy::CATCH |
|
strong |
Exception handling policy.
| Enumerator | |
|---|---|
| CATCH | |
| PASS | Catch & report. application is going to crash |
Definition at line 66 of file supervisor.h.
|
strong |
What to do when thread terminated.
| Enumerator | |
|---|---|
| IGNORE | |
| KILLALL | ignore and proceed kill all other threads |
Definition at line 59 of file supervisor.h.
|
inline |
Definition at line 161 of file supervisor.h.
|
inline |
Definition at line 168 of file supervisor.h.
|
inline |
Definition at line 175 of file supervisor.h.
|
inline |
Definition at line 182 of file supervisor.h.
|
default |
| ExceptionPolicy tut::thread::Parameters::exception_policy_ = ExceptionPolicy::CATCH |
Definition at line 155 of file supervisor.h.
| Restart tut::thread::Parameters::restart_ |
Definition at line 147 of file supervisor.h.
| Scheduling tut::thread::Parameters::scheduling_ |
Definition at line 148 of file supervisor.h.
| TerminationPolicy tut::thread::Parameters::termination_policy_ = TerminationPolicy::IGNORE |
do not allow threads to exit / crash quietly
Definition at line 154 of file supervisor.h.