Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
typed_job.cpp
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2024, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
6
7namespace kcenon::thread
8{
9 template <typename job_type>
10 typed_job_t<job_type>::typed_job_t(job_type priority, const std::string& name)
11 : job(name)
12 , priority_(priority)
13 {
14 }
15
16 template <typename job_type>
20
21 // Explicit template instantiation for job_types
22 template class typed_job_t<job_types>;
23
24} // namespace kcenon::thread
Represents a unit of work (task) to be executed, typically by a job queue.
Definition job.h:136
Typed job template.
Definition typed_job.h:31
~typed_job_t(void) override
Destroys the typed_job_t object.
Definition typed_job.cpp:17
typed_job_t(job_type priority, const std::string &name="typed_job")
Constructs a new typed_job_t object with the given priority and name.
Definition typed_job.cpp:10
Core threading foundation of the thread system library.
Definition thread_impl.h:17
@ priority
Priority-based scheduling.
Base typed job carrying a specific priority level.