aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateGlue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 19:27:02 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 19:28:34 +0200
commit32dfc11c23ec89a994ec92a98e2f9a5c0fbd93db (patch)
treea63b84457257aeba753f0d4be06219a948641944 /src/UpdateGlue.cxx
parentaad0ea6e23d285f9471bddfa5fb919bb984be993 (diff)
downloadmpd-32dfc11c23ec89a994ec92a98e2f9a5c0fbd93db.tar.gz
mpd-32dfc11c23ec89a994ec92a98e2f9a5c0fbd93db.tar.xz
mpd-32dfc11c23ec89a994ec92a98e2f9a5c0fbd93db.zip
Main: use ThreadId instead of GThread*
Diffstat (limited to 'src/UpdateGlue.cxx')
-rw-r--r--src/UpdateGlue.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/UpdateGlue.cxx b/src/UpdateGlue.cxx
index 50af6271d..e55668c55 100644
--- a/src/UpdateGlue.cxx
+++ b/src/UpdateGlue.cxx
@@ -33,6 +33,7 @@
#include "Main.hxx"
#include "Instance.hxx"
#include "system/FatalError.hxx"
+#include "thread/Id.hxx"
#include <glib.h>
@@ -92,7 +93,7 @@ static void * update_task(void *_path)
static void
spawn_update_task(const char *path)
{
- assert(g_thread_self() == main_task);
+ assert(main_thread.IsInside());
progress = UPDATE_PROGRESS_RUNNING;
modified = false;
@@ -115,7 +116,7 @@ spawn_update_task(const char *path)
unsigned
update_enqueue(const char *path, bool _discard)
{
- assert(g_thread_self() == main_task);
+ assert(main_thread.IsInside());
if (!db_is_simple() || !mapper_has_music_directory())
return 0;