23#if !defined(KCENON_THREAD_INTERNAL_INCLUDE)
24#if defined(__GNUC__) || defined(__clang__)
25#pragma message("thread_pool_fmt.h is deprecated. Include <kcenon/thread/formatters.h> instead.")
26#elif defined(_MSC_VER)
27#pragma message("thread_pool_fmt.h is deprecated. Include <kcenon/thread/formatters.h> instead.")
54struct std::formatter<
kcenon::thread::thread_pool> : std::formatter<std::string_view>
63 template <
typename FormatContext>
66 return std::formatter<std::string_view>::format(item.
to_string(), ctx);
76struct std::formatter<
kcenon::thread::thread_pool, wchar_t>
77 : std::formatter<std::wstring_view, wchar_t>
86 template <
typename FormatContext>
91 return std::formatter<std::wstring_view, wchar_t>::format(wstr, ctx);
A thread pool for concurrent execution of jobs using multiple worker threads.
auto to_string(void) const -> std::string
Provides a string representation of this thread_pool.
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.
Core threading foundation of the thread system library.