aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.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/Main.cxx
parentaad0ea6e23d285f9471bddfa5fb919bb984be993 (diff)
downloadmpd-32dfc11c23ec89a994ec92a98e2f9a5c0fbd93db.tar.gz
mpd-32dfc11c23ec89a994ec92a98e2f9a5c0fbd93db.tar.xz
mpd-32dfc11c23ec89a994ec92a98e2f9a5c0fbd93db.zip
Main: use ThreadId instead of GThread*
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 003f7414b..726bfc5d4 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -58,6 +58,7 @@
#include "system/FatalError.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
+#include "thread/Id.hxx"
#include "ConfigGlobal.hxx"
#include "ConfigData.hxx"
#include "ConfigDefaults.hxx"
@@ -99,7 +100,7 @@ enum {
static constexpr Domain main_domain("main");
-GThread *main_task;
+ThreadId main_thread;
EventLoop *main_loop;
Instance *instance;
@@ -389,7 +390,7 @@ int mpd_main(int argc, char *argv[])
return EXIT_FAILURE;
}
- main_task = g_thread_self();
+ main_thread = ThreadId::GetCurrent();
main_loop = new EventLoop(EventLoop::Default());
instance = new Instance();