diff options
author | David Robillard <d@drobilla.net> | 2018-04-03 18:23:08 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-04-03 18:23:08 +0200 |
commit | 76c3ac8d285deef88f41e6cbba1f3c77a49df179 (patch) | |
tree | b02966fef554acac5924898df8b3d76d35723258 /src/server/RunContext.hpp | |
parent | 7a5e694c3ffed12532ee2b97f99c4b56dbba4d02 (diff) | |
download | ingen-parallel-work.tar.gz ingen-parallel-work.tar.bz2 ingen-parallel-work.zip |
WIP: parallel stuffparallel-work
Diffstat (limited to 'src/server/RunContext.hpp')
-rw-r--r-- | src/server/RunContext.hpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/server/RunContext.hpp b/src/server/RunContext.hpp index 6c8246ca..7db53b1b 100644 --- a/src/server/RunContext.hpp +++ b/src/server/RunContext.hpp @@ -25,6 +25,7 @@ #include "lv2/lv2plug.in/ns/ext/urid/urid.h" #include "raul/RingBuffer.hpp" +#include "Job.hpp" #include "types.hpp" namespace Ingen { @@ -33,12 +34,6 @@ namespace Server { class Engine; class PortImpl; -struct SingleTask; -struct SeqTask; -struct ParTask; - -using Task = boost::variant<SingleTask, SeqTask, ParTask>; - /** Graph execution context. * * This is used to pass whatever information a Node might need to process; such @@ -125,7 +120,7 @@ public: void claim_task(ParTask* task); /** Steal a task from some other context if possible. */ - Task* steal_task() const; + Job steal_task() const; void set_priority(int priority); void set_rate(SampleCount rate) { _rate = rate; } @@ -144,7 +139,7 @@ public: inline bool realtime() const { return _realtime; } protected: - const RunContext& operator=(const RunContext& copy) = delete; + RunContext& operator=(const RunContext&) = delete; void run(); |