|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Default error handler implementation. More...
#include <error_handler.h>


Public Member Functions | |
| void | handle_error (const std::string &context, const std::string &error) override |
| Handle an error. | |
| void | set_error_callback (error_callback callback) override |
| Set a callback for error handling. | |
Public Member Functions inherited from kcenon::thread::error_handler | |
| virtual | ~error_handler ()=default |
Private Attributes | |
| error_callback | callback_ |
Additional Inherited Members | |
Public Types inherited from kcenon::thread::error_handler | |
| using | error_callback |
Default error handler implementation.
Uses the common_system ILogger interface if available and calls registered callbacks.
Definition at line 56 of file error_handler.h.
|
inlineoverridevirtual |
Handle an error.
| context | Context where the error occurred |
| error | Error message |
Implements kcenon::thread::error_handler.
Definition at line 61 of file error_handler.h.
References callback_.
|
inlineoverridevirtual |
Set a callback for error handling.
| callback | Callback function to be called on errors |
Implements kcenon::thread::error_handler.
Definition at line 75 of file error_handler.h.
References kcenon::thread::callback, and callback_.
|
private |
Definition at line 58 of file error_handler.h.
Referenced by handle_error(), and set_error_callback().