summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-11-23 12:27:02 (GMT)
committerSwift Review <review@swift.im>2015-12-17 18:30:00 (GMT)
commit54b1a705c192c1c0afa3c71db393a275f25fc7ca (patch)
tree74c13bbf56cd4d8efd59c6f05015f0fc20825f0c /Swiften/EventLoop/EventLoop.h
parent29e8802886c0cb881e08a60cf0ea104e67577253 (diff)
downloadswift-54b1a705c192c1c0afa3c71db393a275f25fc7ca.zip
swift-54b1a705c192c1c0afa3c71db393a275f25fc7ca.tar.bz2
Process multiple events at once inside EventLoop
Test-Information: Unit and integration tests pass on OS X 10.10.5 and Debian 8.2. UI remains responsive when transferring a file between two Swift instances. Change-Id: I7841347a5d6c55121e02e274a7087a2fc200f879
Diffstat (limited to 'Swiften/EventLoop/EventLoop.h')
-rw-r--r--Swiften/EventLoop/EventLoop.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Swiften/EventLoop/EventLoop.h b/Swiften/EventLoop/EventLoop.h
index 54e0fe7..27a8c9c 100644
--- a/Swiften/EventLoop/EventLoop.h
+++ b/Swiften/EventLoop/EventLoop.h
@@ -43,16 +43,17 @@ namespace Swift {
protected:
/**
- * The \ref handleNextEvent method is called by an implementation of the abstract \ref EventLoop class
+ * The \ref handleNextEvents method is called by an implementation of the abstract \ref EventLoop class
* at any point after the virtual \ref eventPosted method has been called.
* This method does not block, except for short-time synchronization.
+ * It can process multiple events before it reutrns.
*/
- void handleNextEvent();
+ void handleNextEvents();
/**
* The \ref eventPosted virtual method serves as notification for when events are still available in the queue.
* It is called after the first event is posted to an empty queue or after an event has been handled in
- * \ref handleNextEvent and there are still remaining events in the queue.
+ * \ref handleNextEvents and there are still remaining events in the queue.
*/
virtual void eventPosted() = 0;