aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-06-07 13:25:30 +0200
committerStefan Boberg <[email protected]>2023-06-07 13:25:30 +0200
commit165d5472afe3c3d13c8c855701c00180507ebe54 (patch)
treeb32d3f589abd12f487b800632882140e3e4a3538 /src/zenserver/zenserver.cpp
parent0.2.13-pre1 (diff)
downloadzen-165d5472afe3c3d13c8c855701c00180507ebe54.tar.xz
zen-165d5472afe3c3d13c8c855701c00180507ebe54.zip
added thread names to timer, upstream monitor
also altered http-asio thread naming scheme
Diffstat (limited to 'src/zenserver/zenserver.cpp')
-rw-r--r--src/zenserver/zenserver.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp
index 76aa78f37..363f168fe 100644
--- a/src/zenserver/zenserver.cpp
+++ b/src/zenserver/zenserver.cpp
@@ -536,7 +536,10 @@ public:
{
if (!m_IoRunner.joinable())
{
- m_IoRunner = std::thread{[this] { m_IoContext.run(); }};
+ m_IoRunner = std::thread{[this] {
+ zen::SetCurrentThreadName("timer_io");
+ m_IoContext.run();
+ }};
}
}
@@ -1255,7 +1258,10 @@ ZenEntryPoint::Run()
// Monitor shutdown signals
ShutdownThread.reset(new std::thread{[&] {
+ zen::SetCurrentThreadName("shutdown_monitor");
+
ZEN_INFO("shutdown monitor thread waiting for shutdown signal '{}'", ShutdownEventName);
+
if (ShutdownEvent->Wait())
{
if (!IsApplicationExitRequested())