|
ThreadSchedule 2.0.0
Modern C++ thread management library
|
Error handling primitives: TaskError, ErrorHandler, and ErrorHandledTask. More...
#include <chrono>#include <exception>#include <functional>#include <future>#include <map>#include <memory>#include <mutex>#include <string>#include <thread>#include <type_traits>#include <vector>Go to the source code of this file.
Classes | |
| struct | threadschedule::TaskError |
| Holds diagnostic information captured from a failed task. More... | |
| class | threadschedule::ErrorHandler |
| Central registry and dispatcher for task-error callbacks. More... | |
| class | threadschedule::ErrorHandledTask< Func > |
| Callable wrapper that catches exceptions and routes them to an ErrorHandler. More... | |
| class | threadschedule::FutureWithErrorHandler< T > |
| A move-only future wrapper that supports an error callback. More... | |
Namespaces | |
| namespace | threadschedule |
Typedefs | |
| using | threadschedule::ErrorCallback = std::function<void(TaskError const&)> |
| Signature for error-handling callbacks registered with ErrorHandler. | |
Functions | |
| template<typename Func> | |
| auto | threadschedule::make_error_handled_task (Func &&func, std::shared_ptr< ErrorHandler > handler, std::string description="") |
| Factory function that creates an ErrorHandledTask with perfect forwarding. | |
Error handling primitives: TaskError, ErrorHandler, and ErrorHandledTask.
Definition in file error_handler.hpp.