29 namespace jmmcg {
namespace LIBJMMCG_VER_NAMESPACE {
namespace ppd {
32 static constexpr generic_traits::api_type platform_api=generic_traits::api_type::posix_pthreads;
77 case no_kernel_thread:
78 os<<_T(
"no_kernel_thread");
89 case get_exit_code_failure:
90 os<<_T(
"get_exit_code_failure");
92 case deadlocked_with_another_thread:
93 os<<_T(
"deadlocked_with_another_thread");
96 os<<_T(
"invalid_thread");
98 case thread_id_not_found:
99 os<<_T(
"thread_id_not_found");
101 case failed_to_cancel:
102 os<<_T(
"failed_to_cancel");
104 case null_this_pointer:
105 os<<_T(
"null_this_pointer");
107 case jmmcg_exception:
108 os<<_T(
"jmmcg_exception");
111 os<<_T(
"stl_exception");
113 case unknown_exception:
114 os<<_T(
"unknown_exception");
117 os<<_T(
"terminated");
142 ss<<
"Unable to initialize the pthread attr object.\n"
143 <<
info::
function(__LINE__,
__PRETTY_FUNCTION__,
typeid(*
this))<<
'\n'
150 ss<<
"Unable to set the pthread detached state.\n"
157 ss<<
"Unable to set a pthread stack-size.\n"
165 ss<<
"Unable to set the pthread stack-size.\n"
173 ss<<
"Unable to set the pthread scope.\n"
181 ss<<
"Unable to set the pthread scheduling.\n"
285 os<<
_T(
", scope=")<<(
val==PTHREAD_SCOPE_SYSTEM ?
_T(
"system") :
_T(
"unknown"));
288 os<<
_T(
", scheduling=")<<(
val==PTHREAD_INHERIT_SCHED ?
_T(
"inherit") : (
val==PTHREAD_EXPLICIT_SCHED ?
_T(
"explicit") :
_T(
"unknown")));
336 const std::size_t cpu_{};
342 #pragma GCC diagnostic push
343 #pragma GCC diagnostic ignored "-Wattributes"
347 #pragma GCC diagnostic pop