aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-30 14:57:29 +0100
committerMax Kellermann <max@duempel.org>2013-01-30 15:08:09 +0100
commit18e429a87ede285b08aa8d661df7fa6c3f335dc4 (patch)
treef78ede61e56b347bcdfd1bc3f12f6c142b646869 /src
parent3576a8fd9fb7bd550dba34c82cea1aa60e6f9cee (diff)
downloadmpd-18e429a87ede285b08aa8d661df7fa6c3f335dc4.tar.gz
mpd-18e429a87ede285b08aa8d661df7fa6c3f335dc4.tar.xz
mpd-18e429a87ede285b08aa8d661df7fa6c3f335dc4.zip
event/Loop: add method WakeUp()
Diffstat (limited to 'src')
-rw-r--r--src/event/Loop.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx
index 31ef1613c..72731ea2b 100644
--- a/src/event/Loop.hxx
+++ b/src/event/Loop.hxx
@@ -48,6 +48,10 @@ public:
return context;
}
+ void WakeUp() {
+ g_main_context_wakeup(context);
+ }
+
void Break() {
g_main_loop_quit(loop);
}