2014-01-14
2014-01-14 14:33:42 by 0
-
c9edd56de199ccf6d57dcbb3bb91c97940eb4dfb
(9 lines)
(+7/-2)
[
Show
| Annotate
]
Branch: 5.4
Show thread name in slow thread dump header.
790: Inside #if undefined(NO_SLOW_REQ_BT)
}
else {
- report_debug ("###### %s 0x%x has been busy for more than %g seconds.\n",
+ string th_name =
+ ((thread != backend_thread) && thread_name(thread, 1)) || "";
+ if (sizeof(th_name))
+ th_name = " - " + th_name + " -";
+ report_debug ("###### %s 0x%x%s has been busy for more than %g seconds.\n",
thread == backend_thread ? "Backend thread" : "Thread",
- thread->id_number(), timeout);
+ thread->id_number(), th_name, timeout);
describe_all_threads (0, threads_disabled);
}