aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/Loop.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/event/Loop.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx
index 1aaca8820..ad20245de 100644
--- a/src/event/Loop.cxx
+++ b/src/event/Loop.cxx
@@ -23,7 +23,12 @@
void
EventLoop::Run()
{
+ assert(thread == nullptr);
+ thread = g_thread_self();
+
g_main_loop_run(loop);
+
+ assert(thread == g_thread_self());
}
guint