diff options
author | David Robillard <d@drobilla.net> | 2017-10-05 21:10:12 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-16 13:57:39 +0100 |
commit | 516552fe4f38ba82c72fe6ea32982c8a772f9088 (patch) | |
tree | e247dbc91057cecd20d6d00b622e30c19c428d2f /src/server/RunContext.hpp | |
parent | 4975f1e0b17cee620a58b29232867c667c24b0e3 (diff) | |
download | ingen-516552fe4f38ba82c72fe6ea32982c8a772f9088.tar.gz ingen-516552fe4f38ba82c72fe6ea32982c8a772f9088.tar.bz2 ingen-516552fe4f38ba82c72fe6ea32982c8a772f9088.zip |
Remove Engine dependency from Task
Diffstat (limited to 'src/server/RunContext.hpp')
-rw-r--r-- | src/server/RunContext.hpp | 8 |
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; } |