summaryrefslogtreecommitdiffstats
path: root/src/server/RunContext.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-10-05 21:10:12 +0200
committerDavid Robillard <d@drobilla.net>2017-10-07 12:47:52 +0200
commit5f3808170d643b17c721220b926fdd51a133322c (patch)
tree06447e77068b95103b1ac427739258f60e74afa8 /src/server/RunContext.hpp
parentdbd02d57559f1a6c7a65c3235f3a3341d98850fe (diff)
downloadingen-5f3808170d643b17c721220b926fdd51a133322c.tar.gz
ingen-5f3808170d643b17c721220b926fdd51a133322c.tar.bz2
ingen-5f3808170d643b17c721220b926fdd51a133322c.zip
Remove Engine dependency from Task
Diffstat (limited to 'src/server/RunContext.hpp')
-rw-r--r--src/server/RunContext.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/RunContext.hpp b/src/server/RunContext.hpp
index 099ce70f..87fb0fed 100644
--- a/src/server/RunContext.hpp
+++ b/src/server/RunContext.hpp
@@ -114,9 +114,11 @@ public:
_nframes = nframes;
}
- inline void set_task(Task* task) {
- _task = task;
- }
+ /** Claim a parallel task, and signal others that work is available. */
+ void claim_task(Task* task);
+
+ /** Steal a task from some other context if possible. */
+ Task* steal_task() const;
void set_priority(int priority);
void set_rate(SampleCount rate) { _rate = rate; }