summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-02-09 18:48:14 +0100
committerMax Kellermann <max@musicpd.org>2018-02-09 18:48:14 +0100
commitc801936e531222ba1cb526c585d8ece3e68315bf (patch)
treee7608d137d7e05e9d256abf50849e78414accdeb
parent817656504dea224dbf849e5e988e277d798ae08e (diff)
db/update/Service: set the update thread name
-rw-r--r--src/db/update/Service.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/update/Service.cxx b/src/db/update/Service.cxx
index 8660575c6..eee89c484 100644
--- a/src/db/update/Service.cxx
+++ b/src/db/update/Service.cxx
@@ -29,6 +29,7 @@
#include "Idle.hxx"
#include "Log.hxx"
#include "thread/Thread.hxx"
+#include "thread/Name.hxx"
#include "thread/Util.hxx"
#ifndef NDEBUG
@@ -113,6 +114,8 @@ UpdateService::Task()
{
assert(walk != nullptr);
+ SetThreadName("update");
+
if (!next.path_utf8.empty())
FormatDebug(update_domain, "starting: %s",
next.path_utf8.c_str());