Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
kcenon::thread::job_detail Namespace Reference

Variables

constexpr std::array thread_conditions_strings = { "created", "waiting", "working", "stopping", "stopped" }
 Array of string representations corresponding to each thread_conditions state.
 
constexpr size_t thread_conditions_count = thread_conditions_strings.size()
 Total number of states defined in thread_conditions.
 
constexpr std::array job_type_strings = { "REALTIME", "BATCH", "BACKGROUND" }
 String representations corresponding to each job_types value.
 
constexpr size_t job_type_count = job_type_strings.size()
 The number of type levels defined in job_types.
 

Variable Documentation

◆ job_type_count

size_t kcenon::thread::job_detail::job_type_count = job_type_strings.size()
constexpr

The number of type levels defined in job_types.

Used in boundary checks to prevent out-of-range access into job_type_strings.

Definition at line 56 of file job_types.h.

Referenced by kcenon::thread::to_string().

◆ job_type_strings

std::array kcenon::thread::job_detail::job_type_strings = { "REALTIME", "BATCH", "BACKGROUND" }
constexpr

String representations corresponding to each job_types value.

Indexed by casting a job_types value to size_t. E.g.,

job_detail::job_type_strings[static_cast<size_t>(job_types::RealTime)] // "REALTIME"
constexpr std::array job_type_strings
String representations corresponding to each job_types value.
Definition job_types.h:49
@ RealTime
Real-time job requiring immediate response.

Definition at line 49 of file job_types.h.

49{ "REALTIME", "BATCH", "BACKGROUND" };

Referenced by kcenon::thread::to_string().

◆ thread_conditions_count

size_t kcenon::thread::job_detail::thread_conditions_count = thread_conditions_strings.size()
constexpr

Total number of states defined in thread_conditions.

Definition at line 63 of file thread_conditions.h.

Referenced by kcenon::thread::to_string().

◆ thread_conditions_strings

std::array kcenon::thread::job_detail::thread_conditions_strings = { "created", "waiting", "working", "stopping", "stopped" }
constexpr

Array of string representations corresponding to each thread_conditions state.

This array is indexed by the underlying enum value cast to size_t, allowing compile-time string retrieval in to_string().

Definition at line 57 of file thread_conditions.h.

58{ "created", "waiting", "working", "stopping", "stopped" };

Referenced by kcenon::thread::to_string().