summaryrefslogtreecommitdiffstats
path: root/src/server/EventSource.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-03 05:43:19 +0000
committerDavid Robillard <d@drobilla.net>2012-05-03 05:43:19 +0000
commit02dcc06a1675e936ef85714827accb20a9f2a94c (patch)
treee1980d770736b64b6652c4afed6f2a7bb3ba3858 /src/server/EventSource.hpp
parent9ae720fdc60d7e40b1b8be7c1133a57acb4e564c (diff)
downloadingen-02dcc06a1675e936ef85714827accb20a9f2a94c.tar.gz
ingen-02dcc06a1675e936ef85714827accb20a9f2a94c.tar.bz2
ingen-02dcc06a1675e936ef85714827accb20a9f2a94c.zip
Work towards a proper server infrastructure with a thread per connection.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4320 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/EventSource.hpp')
-rw-r--r--src/server/EventSource.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/EventSource.hpp b/src/server/EventSource.hpp
index 4425586d..65afece4 100644
--- a/src/server/EventSource.hpp
+++ b/src/server/EventSource.hpp
@@ -35,7 +35,10 @@ class EventSource
public:
virtual ~EventSource() {}
- virtual void process(PostProcessor& dest,
+ /** Process events for a cycle.
+ * @return False iff this source is finished and should be removed.
+ */
+ virtual bool process(PostProcessor& dest,
ProcessContext& context,
bool limit = true) = 0;
};