summaryrefslogtreecommitdiffstats
path: root/src/server/EventWriter.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-09 01:14:30 +0000
committerDavid Robillard <d@drobilla.net>2012-05-09 01:14:30 +0000
commitbaeb3c1872a989b69eb89fae04f93c59b06f258e (patch)
tree83720f9c7bad7ab26c910180d8caea2fd4cb7e70 /src/server/EventWriter.hpp
parent4d46a232b30be99bc34e581cbc636345f77c6bc4 (diff)
downloadingen-baeb3c1872a989b69eb89fae04f93c59b06f258e.tar.gz
ingen-baeb3c1872a989b69eb89fae04f93c59b06f258e.tar.bz2
ingen-baeb3c1872a989b69eb89fae04f93c59b06f258e.zip
Simply event interface design and make only one pre-process thread.
This makes event pre-processing actually safe for multiple interfaces since multiple events will never be pre-processed simultaneously and the pre-process order is definitely the same as the execute order. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4323 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/EventWriter.hpp')
-rw-r--r--src/server/EventWriter.hpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/server/EventWriter.hpp b/src/server/EventWriter.hpp
index 771d22f5..1c5d11db 100644
--- a/src/server/EventWriter.hpp
+++ b/src/server/EventWriter.hpp
@@ -31,17 +31,13 @@ namespace Ingen {
namespace Server {
class Engine;
-class EventSink;
-/** An Interface that creates and writes Events to an EventSink.
- *
- * This is where Interface calls get turned into Events which are actually
- * processed by the engine to do things.
+/** An Interface that creates and enqueues Events for the Engine to execute.
*/
class EventWriter : public Interface
{
public:
- explicit EventWriter(Engine& engine, EventSink& sink);
+ explicit EventWriter(Engine& engine);
virtual ~EventWriter();
Raul::URI uri() const { return "http://drobilla.net/ns/ingen#internal"; }
@@ -87,7 +83,6 @@ public:
protected:
Interface* _request_client;
- EventSink& _sink;
int32_t _request_id;
Engine& _engine;
bool _in_bundle; ///< True iff a bundle is currently being received
@@ -99,4 +94,4 @@ private:
} // namespace Server
} // namespace Ingen
-#endif // INGEN_ENGINE_QUEUEDENGINEINTERFACE_HPP
+#endif // INGEN_ENGINE_EVENTWRITER_HPP