|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Modern error handling for the thread system. More...
#include <string>#include <optional>#include <type_traits>#include <string_view>#include <ostream>#include <functional>#include <stdexcept>
Go to the source code of this file.
Classes | |
| class | kcenon::thread::error |
| Represents an error in the thread system. More... | |
| class | kcenon::thread::result_void |
| Wrapper for void result. More... | |
| class | kcenon::thread::result< T > |
| A template class representing either a value or an error. More... | |
| class | kcenon::thread::result< void > |
| Specialization of result for void. More... | |
Namespaces | |
| namespace | kcenon |
| namespace | kcenon::thread |
| Core threading foundation of the thread system library. | |
Typedefs | |
| template<typename T > | |
| using | kcenon::thread::result_t = result<T> |
Functions | |
| std::string | kcenon::thread::error_code_to_string (error_code code) |
| Converts an error_code to a string representation. | |
| template<typename T > | |
| result< T > | kcenon::thread::optional_error_to_result (const std::optional< std::string > &error, T &&value) |
| result< void > | kcenon::thread::optional_error_to_result (const std::optional< std::string > &error) |
| std::optional< std::string > | kcenon::thread::result_to_optional_error (const result< void > &res) |
| template<typename T > | |
| std::pair< std::optional< T >, std::optional< std::string > > | kcenon::thread::result_to_pair (const result< T > &res) |
Modern error handling for the thread system.
This file provides typed error handling capabilities using a result type pattern that is similar to std::expected from C++23, but can be used with C++20.
Definition in file error_handling.h.