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

Unified header for all std::formatter specializations in thread_system. More...

Include dependency graph for formatters.h:

Go to the source code of this file.

Macros

#define KCENON_THREAD_INTERNAL_INCLUDE
 

Detailed Description

Unified header for all std::formatter specializations in thread_system.

Date
2026-01-23

This header provides a single include point for all std::formatter specializations in the thread_system library. Instead of including individual *_fmt.h headers, users can include this file to get formatting support for all thread_system types.

Usage

auto pool = std::make_shared<kcenon::thread::thread_pool>("MyPool");
// All types now support std::format
std::string output = std::format("Pool: {}, State: {}", *pool, cond);
Unified header for all std::formatter specializations in thread_system.
@ Working
Thread currently processing a task.

Included Formatters

Core Types

  • thread_pool: Thread pool management class
  • thread_worker: Worker thread class
  • thread_conditions: Thread state enumeration

Typed Pool Types

  • job_types: Job priority enumeration
  • typed_thread_pool_t<T>: Templated typed thread pool
  • typed_thread_worker_t<T>: Templated typed worker

Notes

This header consolidates formatter definitions that were previously spread across multiple files. The individual type headers still contain their formatter specializations inline for backward compatibility.

For enum types, you can also use the kcenon::thread::utils::enum_formatter template with a custom converter functor.

See also
formatter_macros.h for DECLARE_FORMATTER macro
formatter.h for enum_formatter and formatter utility class

Definition in file formatters.h.

Macro Definition Documentation

◆ KCENON_THREAD_INTERNAL_INCLUDE

#define KCENON_THREAD_INTERNAL_INCLUDE

Definition at line 60 of file formatters.h.