Thread pool crash safety extensions.
More...
#include <crash_handler.h>
Thread pool crash safety extensions.
Definition at line 222 of file crash_handler.h.
◆ enable_for_pool()
| static void kcenon::thread::thread_pool_crash_safety::enable_for_pool |
( |
const std::string & | pool_name, |
|
|
class thread_pool & | pool ) |
|
static |
Enable crash safety for a thread pool.
- Parameters
-
| pool_name | Unique name for the thread pool |
| pool | Reference to the thread pool |
Referenced by main().
◆ handle_job_crash()
| static void kcenon::thread::thread_pool_crash_safety::handle_job_crash |
( |
const std::string & | pool_name, |
|
|
const crash_context & | context ) |
|
staticprivate |
◆ set_job_crash_handler()
| static void kcenon::thread::thread_pool_crash_safety::set_job_crash_handler |
( |
std::function< void(const std::string &pool_name, const crash_context &)> | handler | ) |
|
|
static |
Register job crash handler.
- Parameters
-
| handler | Function to call when a job crashes |
Referenced by main().
The documentation for this class was generated from the following file: