summaryrefslogtreecommitdiff
path: root/libs/surfaces/tranzport/init.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-01 20:03:07 +0000
committerDavid Robillard <d@drobilla.net>2010-02-01 20:03:07 +0000
commitfe0b06bb9be51b98120c2d05c25350d44839068a (patch)
tree76eadc8bf44a6f62af1b12ee13fccd01f18b238d /libs/surfaces/tranzport/init.cc
parentae1abc4ea6b77611399e37817cd2f837342238b2 (diff)
Remove clearly worthless (doesn't event parse, let alone compile) TRANSZPORT_THREADS stuff.
git-svn-id: svn://localhost/ardour2/branches/3.0@6612 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/tranzport/init.cc')
-rw-r--r--libs/surfaces/tranzport/init.cc19
1 files changed, 2 insertions, 17 deletions
diff --git a/libs/surfaces/tranzport/init.cc b/libs/surfaces/tranzport/init.cc
index 7d6ee22206..289d4d79a7 100644
--- a/libs/surfaces/tranzport/init.cc
+++ b/libs/surfaces/tranzport/init.cc
@@ -88,16 +88,6 @@ TranzportControlProtocol::set_active (bool yn)
if (pthread_create_and_store (X_("tranzport monitor"), &thread, _monitor_work, this) == 0) {
_active = true;
-#if TRANZPORT_THREADS
- if (pthread_create_and_store (X_("tranzport read"), &thread_read, _read_work, this) == 0) {
- _active_read = true;
- if (pthread_create_and_store (X_("tranzport write"), &thread_write, _write_work, this) == 0) {
- _active_write = true;
- if (pthread_create_and_store (X_("tranzport process"), &thread_process, _process_work, this) == 0) {
- _active_process = true;
- if (pthread_create_and_store (X_("tranzport timer"), &thread_timer, _process_timer, this) == 0) {
- _active_process = true;
-#endif
} else {
return -1;
}
@@ -112,19 +102,14 @@ TranzportControlProtocol::set_active (bool yn)
// thread FIXME - wait til all writes are done
for(int x = 0; (x < 20/MAX_TRANZPORT_INFLIGHT) && flush(); x++) { usleep(100); }
}
-#if TRANZPORT_THREADS
- pthread_cancel_one (_thread_timer);
- pthread_cancel_one (_thread_process);
- pthread_cancel_one (_thread_read);
- pthread_cancel_one (_thread_write);
-#endif
+
pthread_cancel_one (thread);
cerr << "Tranzport Thread dead\n";
close ();
_active = false;
cerr << "End tranzport shutdown\n";
- }
+ }
}
return 0;