summaryrefslogtreecommitdiff
path: root/rotord/rotor.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-02-24 23:24:18 +0000
committerComment <tim@gray.(none)>2013-02-24 23:24:18 +0000
commitd5193b058ca06db9bda772ccdf49a8c4976c7274 (patch)
treef555499bf462c2b0e1ea0f10b8a21035f1e1e091 /rotord/rotor.h
parent9de16e3435b0e6fd14af991db278717387d676d3 (diff)
working threading
Diffstat (limited to 'rotord/rotor.h')
-rwxr-xr-xrotord/rotor.h13
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