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

Foundational worker thread class with lifecycle management. More...

#include <kcenon/thread/utils/formatter.h>
#include <kcenon/thread/utils/convert_string.h>
#include "thread_conditions.h"
#include "error_handling.h"
#include "thread_impl.h"
#include "lifecycle_controller.h"
#include <mutex>
#include <memory>
#include <thread>
#include <atomic>
#include <chrono>
#include <iostream>
#include <optional>
#include <condition_variable>
#include <kcenon/thread/utils/formatter_macros.h>
Include dependency graph for thread_base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::thread::thread_base
 A foundational class for implementing custom worker threads. More...
 

Namespaces

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

Detailed Description

Foundational worker thread class with lifecycle management.

Provides the base class for all worker threads in the thread system. Supports both std::jthread (C++20) and std::thread with unified start/stop lifecycle, periodic wake intervals, and customizable work hooks (before_start, do_work, after_stop).

See also
job For the work units processed by threads
thread_worker For the specialized worker that processes job_queue

Definition in file thread_base.h.