summaryrefslogtreecommitdiffstats
path: root/src/server/EventSource.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-21 21:45:14 +0000
committerDavid Robillard <d@drobilla.net>2011-10-21 21:45:14 +0000
commit0d4792af695d94a1e476adcdb65eed8a501ddbd4 (patch)
tree1c0fc824541fcdbb057f5a0909bc8cf7704dccfe /src/server/EventSource.cpp
parent4ce6781bd6727fca68d4c99337f47a75d849e5ab (diff)
downloadingen-0d4792af695d94a1e476adcdb65eed8a501ddbd4.tar.gz
ingen-0d4792af695d94a1e476adcdb65eed8a501ddbd4.tar.bz2
ingen-0d4792af695d94a1e476adcdb65eed8a501ddbd4.zip
Make OSCEngineReceiver and HTTPEngineReceiver has-a ServerInterfaceImpl (instead of is-a).
Towards further modularization... git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3570 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/EventSource.cpp')
-rw-r--r--src/server/EventSource.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/EventSource.cpp b/src/server/EventSource.cpp
index 2711451e..0b7a0a79 100644
--- a/src/server/EventSource.cpp
+++ b/src/server/EventSource.cpp
@@ -63,6 +63,16 @@ EventSource::push_queued(Event* const ev)
whip();
}
+/** Prepare all unprepared events.
+ */
+void
+EventSource::prepare_all()
+{
+ while (unprepared_events()) {
+ whip();
+ }
+}
+
/** Process all events for a cycle.
*
* Executed events will be pushed to @a dest.