diff options
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; } |