diff options
author | Max Kellermann <max@duempel.org> | 2013-08-10 09:00:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-10 09:00:04 +0200 |
commit | d23c907a94a58d5e6ad2f42f6eecf358e3d9f775 (patch) | |
tree | e399175cc7a39d786e9ee3403c8cec8e1cd785c6 /src/event/Loop.cxx | |
parent | 018f4155eb7b476b96a7b401377be78e00ca7dd2 (diff) | |
download | mpd-d23c907a94a58d5e6ad2f42f6eecf358e3d9f775.tar.gz mpd-d23c907a94a58d5e6ad2f42f6eecf358e3d9f775.tar.xz mpd-d23c907a94a58d5e6ad2f42f6eecf358e3d9f775.zip |
thread/Id: new class replacing GThread pointers
Remove a GLib dependencies from class EventLoop and DatabaseLock.
Diffstat (limited to 'src/event/Loop.cxx')
-rw-r--r-- | src/event/Loop.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index ad20245de..5154c3562 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -23,12 +23,12 @@ void EventLoop::Run() { - assert(thread == nullptr); - thread = g_thread_self(); + assert(thread.IsNull()); + thread = ThreadId::GetCurrent(); g_main_loop_run(loop); - assert(thread == g_thread_self()); + assert(thread.IsInside()); } guint |