summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/EventLoop/SimpleEventLoop.h')
-rw-r--r--Swiften/EventLoop/SimpleEventLoop.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Swiften/EventLoop/SimpleEventLoop.h b/Swiften/EventLoop/SimpleEventLoop.h
index eedaf88..221591e 100644
--- a/Swiften/EventLoop/SimpleEventLoop.h
+++ b/Swiften/EventLoop/SimpleEventLoop.h
@@ -6,8 +6,6 @@
#pragma once
-#include <vector>
-#include <boost/function.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition_variable.hpp>
@@ -31,8 +29,9 @@ namespace Swift {
void runOnce();
void stop();
-
- virtual void post(const Event& event);
+
+ protected:
+ virtual void eventPosted();
private:
void doRun(bool breakAfterEvents);
@@ -40,8 +39,9 @@ namespace Swift {
private:
bool isRunning_;
- std::vector<Event> events_;
- boost::mutex eventsMutex_;
- boost::condition_variable eventsAvailable_;
+
+ bool eventAvailable_;
+ boost::mutex eventAvailableMutex_;
+ boost::condition_variable eventAvailableCondition_;
};
}