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

Base job class for schedulable work units in the thread system. More...

#include <kcenon/thread/utils/formatter.h>
#include <kcenon/thread/utils/convert_string.h>
#include "error_handling.h"
#include "cancellation_token.h"
#include "retry_policy.h"
#include <tuple>
#include <memory>
#include <string>
#include <vector>
#include <optional>
#include <string_view>
#include <atomic>
#include <chrono>
#include <cstdint>
#include <functional>
#include <kcenon/thread/utils/formatter_macros.h>
Include dependency graph for job.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::thread::job_components
 Internal structure holding composed behaviors for a job. More...
 
class  kcenon::thread::job
 Represents a unit of work (task) to be executed, typically by a job queue. More...
 

Namespaces

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

Enumerations

enum class  kcenon::thread::job_priority {
  kcenon::thread::lowest = 0 , kcenon::thread::low = 1 , kcenon::thread::normal = 2 , kcenon::thread::high = 3 ,
  kcenon::thread::highest = 4 , kcenon::thread::realtime = 5
}
 Priority levels for job scheduling. More...
 

Detailed Description

Base job class for schedulable work units in the thread system.

Defines the core job abstraction used throughout the thread system. Jobs support composition via a fluent interface for attaching callbacks, priority, retry policies, timeout, and cancellation tokens.

See also
thread_base For the worker thread that executes jobs
job_queue For the thread-safe queue that stores jobs

Definition in file job.h.