|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Classes | |
| class | job_interface |
| Interface for executable job objects. More... | |
Typedefs | |
| using | job_ptr = std::shared_ptr<job_interface> |
| Shared pointer type for job objects. | |
| using | job_weak_ptr = std::weak_ptr<job_interface> |
| Weak pointer type for job objects. | |
| using | job_function = std::function<void()> |
| Function type for simple callback-based jobs. | |
Enumerations | |
| enum class | job_priority : uint8_t { low = 0 , normal = 1 , high = 2 } |
| Job priority levels for type-based scheduling. More... | |
| enum class | job_state : uint8_t { pending , running , completed , cancelled , failed } |
| Job execution states. More... | |
Functions | |
| job_priority | make_priority (int priority_value) |
| Utility function to create a job priority from integer. | |
| std::string | to_string (job_priority priority) |
| Convert job priority to string representation. | |
| std::string | to_string (job_state state) |
| Convert job state to string representation. | |
| using kcenon::thread::jobs::job_function = std::function<void()> |
Function type for simple callback-based jobs.
Definition at line 94 of file job_types.h.
| using kcenon::thread::jobs::job_ptr = std::shared_ptr<job_interface> |
Shared pointer type for job objects.
Definition at line 84 of file job_types.h.
| using kcenon::thread::jobs::job_weak_ptr = std::weak_ptr<job_interface> |
Weak pointer type for job objects.
Definition at line 89 of file job_types.h.
|
strong |
Job priority levels for type-based scheduling.
| Enumerator | |
|---|---|
| low | Low priority jobs (background tasks) |
| normal | Normal priority jobs (regular tasks) |
| high | High priority jobs (urgent tasks) |
Definition at line 22 of file job_types.h.
|
strong |
Job execution states.
Definition at line 31 of file job_types.h.
|
inlinenodiscard |
Utility function to create a job priority from integer.
| priority_value | Integer priority (0=low, 1=normal, 2=high) |
Definition at line 101 of file job_types.h.
|
inlinenodiscard |
Convert job priority to string representation.
| priority | Job priority to convert |
Definition at line 115 of file job_types.h.
References high, low, normal, and kcenon::thread::priority.
|
inlinenodiscard |
Convert job state to string representation.
| state | Job state to convert |
Definition at line 129 of file job_types.h.
References cancelled, completed, failed, pending, and running.