diff options
author | David Robillard <d@drobilla.net> | 2009-11-22 16:13:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-11-22 16:13:01 +0000 |
commit | 306ea241f0f1db66215bc177a1e8ec8ec341f509 (patch) | |
tree | 3340f05ae96cd3d98fd191bd0905d43e62a9b70d /src/engine/MessageContext.hpp | |
parent | 1745a63b874c296253a27ca7ad95d3a7b17822f7 (diff) | |
download | ingen-306ea241f0f1db66215bc177a1e8ec8ec341f509.tar.gz ingen-306ea241f0f1db66215bc177a1e8ec8ec341f509.tar.bz2 ingen-306ea241f0f1db66215bc177a1e8ec8ec341f509.zip |
Enqueue message thread requests by the port, not by the node.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2283 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/MessageContext.hpp')
-rw-r--r-- | src/engine/MessageContext.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/MessageContext.hpp b/src/engine/MessageContext.hpp index 4d8c0695..1195d7f5 100644 --- a/src/engine/MessageContext.hpp +++ b/src/engine/MessageContext.hpp @@ -31,7 +31,7 @@ namespace Ingen { -class NodeImpl; +class PortImpl; /** Context of a message_run() call. * @@ -55,16 +55,16 @@ public: Thread::set_context(THREAD_MESSAGE); } - /** Request a run starting at node. + /** Schedule a port value change at a certain time. * Safe to call from either process thread or pre-process thread. */ - void run(NodeImpl* node, FrameTime time); + void run(PortImpl* port, FrameTime time); protected: struct Request { - Request(FrameTime t=0, NodeImpl* n=0) : time(t), node(n) {} + Request(FrameTime t=0, PortImpl* p=0) : time(t), port(p) {} FrameTime time; - NodeImpl* node; + PortImpl* port; }; public: @@ -87,7 +87,7 @@ protected: /** Thread run method (wait for and execute requests from process thread */ void _run(); - /** Actually execute and propagate from node */ + /** Execute a request (possibly enqueueing more requests) */ void execute(const Request& req); Raul::Semaphore _sem; |