Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
crash_handler.h File Reference

Crash safety levels and handler interface for thread failure recovery. More...

#include <functional>
#include <vector>
#include <mutex>
#include <atomic>
#include <string>
#include <csignal>
#include <memory>
Include dependency graph for crash_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::thread::crash_context
 Crash context information. More...
 
class  kcenon::thread::crash_handler
 Thread-safe crash handler for the entire thread system. More...
 
struct  kcenon::thread::crash_handler::crash_stats
 Get crash statistics. More...
 
struct  kcenon::thread::crash_handler::callback_entry
 
struct  kcenon::thread::crash_handler::cleanup_entry
 
class  kcenon::thread::scoped_crash_callback
 RAII helper for automatic crash callback registration. More...
 
class  kcenon::thread::thread_pool_crash_safety
 Thread pool crash safety extensions. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::thread
 Core threading foundation of the thread system library.
 

Typedefs

using kcenon::thread::crash_callback = std::function<void(const crash_context&)>
 Callback function type for crash handling.
 

Enumerations

enum class  kcenon::thread::crash_safety_level { kcenon::thread::minimal , kcenon::thread::standard , kcenon::thread::paranoid }
 Crash safety levels for different scenarios. More...
 

Detailed Description

Crash safety levels and handler interface for thread failure recovery.

Definition in file crash_handler.h.