summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/EventLoop/SimpleEventLoop.h')
-rw-r--r--Swiften/EventLoop/SimpleEventLoop.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Swiften/EventLoop/SimpleEventLoop.h b/Swiften/EventLoop/SimpleEventLoop.h
index 86195e1..bdffa3d 100644
--- a/Swiften/EventLoop/SimpleEventLoop.h
+++ b/Swiften/EventLoop/SimpleEventLoop.h
@@ -19,12 +19,20 @@ namespace Swift {
SimpleEventLoop();
~SimpleEventLoop();
- void run();
+ void run() {
+ doRun(false);
+ }
+
+ void runUntilEvents() {
+ doRun(true);
+ }
+
void stop();
virtual void post(const Event& event);
private:
+ void doRun(bool breakAfterEvents);
void doStop();
private: