58 = {
"created",
"waiting",
"working",
"stopping",
"stopped" };
73 "thread_conditions_strings and thread_conditions enum are out of sync");
90 auto index =
static_cast<size_t>(condition);
131struct std::formatter<
kcenon::thread::thread_conditions> : std::formatter<std::string_view>
140 template <
typename FormatContext>
154struct std::formatter<
kcenon::thread::thread_conditions, wchar_t>
155 : std::formatter<std::wstring_view, wchar_t>
164 template <
typename FormatContext>
169 return std::formatter<std::wstring_view, wchar_t>::format(wstr, ctx);
static auto to_wstring(const std::string &value) -> std::tuple< std::optional< std::wstring >, std::optional< std::string > >
Converts a std::string (system-encoded) to a std::wstring.
String encoding conversion, Base64 encoding/decoding utilities.
constexpr size_t thread_conditions_count
Total number of states defined in thread_conditions.
constexpr std::array thread_conditions_strings
Array of string representations corresponding to each thread_conditions state.
Core threading foundation of the thread system library.
thread_conditions
Enumeration of various states in a thread's lifecycle.
@ Created
Thread created but not started.
@ Waiting
Thread waiting for work or tasks.
@ Stopping
Thread in the process of stopping.
@ Working
Thread currently processing a task.
@ Stopped
Thread fully stopped.
auto get_all_thread_conditions(void) -> std::vector< thread_conditions >
Retrieves a vector containing all possible thread_conditions values.
constexpr std::string_view to_string(log_level_v2 level) noexcept
Convert log_level_v2 to string representation.