diff options
author | David Robillard <d@drobilla.net> | 2011-10-21 21:45:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-21 21:45:14 +0000 |
commit | 0d4792af695d94a1e476adcdb65eed8a501ddbd4 (patch) | |
tree | 1c0fc824541fcdbb057f5a0909bc8cf7704dccfe /src/server/EventSource.hpp | |
parent | 4ce6781bd6727fca68d4c99337f47a75d849e5ab (diff) | |
download | ingen-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.hpp')
-rw-r--r-- | src/server/EventSource.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/EventSource.hpp b/src/server/EventSource.hpp index 462a2cd8..8a72184e 100644 --- a/src/server/EventSource.hpp +++ b/src/server/EventSource.hpp @@ -35,21 +35,21 @@ class ProcessContext; * (realtime audio thread) and executes them, then they are sent to the * PostProcessor and finalised (post-processing thread). */ -class EventSource : protected Raul::Slave +class EventSource : public Raul::Slave { public: explicit EventSource(); virtual ~EventSource(); + void prepare_all(); void process(PostProcessor& dest, ProcessContext& context, bool limit=true); - bool empty() { return !_head.get(); } + inline bool unprepared_events() const { return (_prepared_back.get() != NULL); } + inline bool empty() const { return !_head.get(); } protected: void push_queued(Event* const ev); - inline bool unprepared_events() { return (_prepared_back.get() != NULL); } - virtual void _whipped(); ///< Prepare 1 event private: |