diff options
Diffstat (limited to 'src/server/RunContext.cpp')
-rw-r--r-- | src/server/RunContext.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/server/RunContext.cpp b/src/server/RunContext.cpp index 541f066d..b2e3f269 100644 --- a/src/server/RunContext.cpp +++ b/src/server/RunContext.cpp @@ -141,6 +141,20 @@ RunContext::emit_notifications(FrameTime end) } void +RunContext::claim_task(Task* task) +{ + if ((_task = task)) { + _engine.signal_tasks_available(); + } +} + +Task* +RunContext::steal_task() const +{ + return _engine.steal_task(_id + 1); +} + +void RunContext::set_priority(int priority) { if (_thread) { |