summaryrefslogtreecommitdiffstats
path: root/src/server/NodeImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-12 06:09:44 +0000
committerDavid Robillard <d@drobilla.net>2012-05-12 06:09:44 +0000
commit1d9bb9768f8a7d0c76fa33688051cd8f2715075d (patch)
tree45aa6f6235fb6d2c4227081eeb7c938db255aab5 /src/server/NodeImpl.hpp
parenta53738e05b296b4ab4e0b701ea37d60013a42605 (diff)
downloadingen-1d9bb9768f8a7d0c76fa33688051cd8f2715075d.tar.gz
ingen-1d9bb9768f8a7d0c76fa33688051cd8f2715075d.tar.bz2
ingen-1d9bb9768f8a7d0c76fa33688051cd8f2715075d.zip
Use compiler checkable ProcessContext parameter rather than runtime context assertions.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4374 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/NodeImpl.hpp')
-rw-r--r--src/server/NodeImpl.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/server/NodeImpl.hpp b/src/server/NodeImpl.hpp
index 03b0fcbe..7da07dc2 100644
--- a/src/server/NodeImpl.hpp
+++ b/src/server/NodeImpl.hpp
@@ -105,14 +105,14 @@ public:
/** Parallelism: Wait for signal that input is ready.
* Only a thread which successfully called process_lock may call this.
*/
- virtual void wait_for_input(size_t num_providers);
+ virtual void wait_for_input(ProcessContext& context, size_t num_providers);
/** Parallelism: Signal that input is ready. Realtime safe.
* Calling this will wake up the thread which blocked on wait_for_input
* if there is one, and otherwise cause it to return true the next call.
* \return true if lock was aquired and input is ready, false otherwise
*/
- virtual void signal_input_ready();
+ virtual void signal_input_ready(ProcessContext& context);
/** Parallelism: Return the number of providers that have signalled. */
virtual unsigned n_inputs_ready() const { return _n_inputs_ready.get(); }
@@ -126,7 +126,7 @@ public:
const void* data) {}
/** Do whatever needs doing in the process thread before process() is called */
- virtual void pre_process(Context& context);
+ virtual void pre_process(ProcessContext& context);
/** Run the node for @a nframes input/output.
*
@@ -136,7 +136,7 @@ public:
virtual void process(ProcessContext& context) = 0;
/** Do whatever needs doing in the process thread after process() is called */
- virtual void post_process(Context& context);
+ virtual void post_process(ProcessContext& context);
/** Set the buffer of a port to a given buffer (e.g. connect plugin to buffer) */
virtual void set_port_buffer(uint32_t voice,
@@ -162,7 +162,8 @@ public:
virtual void set_polyphonic(bool p) { _polyphonic = p; }
virtual bool prepare_poly(BufferFactory& bufs, uint32_t poly);
- virtual bool apply_poly(Raul::Maid& maid, uint32_t poly);
+ virtual bool apply_poly(
+ ProcessContext& context, Raul::Maid& maid, uint32_t poly);
/** Information about the Plugin this Node is an instance of.
* Not the best name - not all nodes come from plugins (e.g. Patch)