thread/Id: new class replacing GThread pointers

Remove a GLib dependencies from class EventLoop and DatabaseLock.
This commit is contained in:
Max Kellermann
2013-08-10 09:00:04 +02:00
parent 018f4155eb
commit d23c907a94
6 changed files with 117 additions and 15 deletions

View File

@@ -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