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


Public Types | |
| using | error_callback |
Public Member Functions | |
| virtual | ~error_handler ()=default |
| virtual void | handle_error (const std::string &context, const std::string &error)=0 |
| Handle an error. | |
| virtual void | set_error_callback (error_callback callback)=0 |
| Set a callback for error handling. | |
Error handler interface.
Provides a way to handle errors in the thread system without depending on a specific error handling implementation.
Definition at line 27 of file error_handler.h.
Definition at line 29 of file error_handler.h.
|
virtualdefault |
|
pure virtual |
Handle an error.
| context | Context where the error occurred |
| error | Error message |
Implemented in kcenon::thread::default_error_handler.
|
pure virtual |
Set a callback for error handling.
| callback | Callback function to be called on errors |
Implemented in kcenon::thread::default_error_handler.