diff options
Diffstat (limited to 'rotord/rotor.h')
| -rwxr-xr-x | rotord/rotor.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h index b21673b..ac4532a 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -89,18 +89,17 @@ namespace Rotor { int num_performances; int num_clips; }; - class Render_context: public Poco::Runnable{ //Poco thread object + class Render_context: public Poco::Task{ //Poco task object //manages a 'patchbay' //high level interfaces for the wizard //and low level interface onto the graph public: - void run() { - printf("Rotor: starting thread\n"); - while (1) sleep(1); - - } - ~Render_context() { + Render_context(const std::string& name): Task(name) { + }; + void runTask() { + while (!isCancelled()) sleep(1); printf("Rotor: stopping thread\n"); + } Render_status get_status(); void cancel(); //interrupt locking process |
