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

Implementation of callback-based job execution for the thread system. More...

Include dependency graph for callback_job.cpp:

Go to the source code of this file.

Namespaces

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

Detailed Description

Implementation of callback-based job execution for the thread system.

This file contains the implementation of the callback_job class, which provides a flexible way to create jobs using lambda functions, function objects, or plain function pointers. The callback_job class supports multiple callback types for different use cases and automatic error handling conversion.

Key Features:

  • Multiple callback types (parameterless, data-based)
  • Automatic error conversion from legacy to modern error handling
  • Type-safe callback storage and execution
  • Support for both lambda functions and function objects
  • Efficient data handling for data-based callbacks

Definition in file callback_job.cpp.