diff options
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(); |