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

Implementation of the base job class for the thread system. More...

Include dependency graph for 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 the base job class for the thread system.

This file contains the implementation of the job class, which serves as the abstract base class for all work units in the thread system. The job class provides essential functionality including:

  • Job identification and naming
  • Binary data storage for data-processing jobs
  • Cancellation token support for cooperative cancellation
  • Job queue association for scheduling
  • Standard interface for work execution

Design Principles:

  • Abstract base class requiring derived classes to implement do_work()
  • Support for both simple and data-driven job types
  • Thread-safe access to job properties
  • Efficient memory management through RAII
  • Flexible cancellation mechanism

Definition in file job.cpp.