diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-11 15:08:10 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-11 15:08:10 -0400 |
commit | fa2dcea820fb3aa9ba244a7e28890c4c9296019a (patch) | |
tree | 405bcbebc8a253d7c81e134da1192bde3fe17b97 /libs/ardour/graph.cc | |
parent | a69847b6713fcc067265cfc95213510107ec7e7d (diff) |
Use jack_native_thread_t for portability
Requires future attention in AudioEngine due to timbyr's use JACK2 extension to JACK API
Diffstat (limited to 'libs/ardour/graph.cc')
-rw-r--r-- | libs/ardour/graph.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc index cb0fa1b21a..3eb601e82b 100644 --- a/libs/ardour/graph.cc +++ b/libs/ardour/graph.cc @@ -101,7 +101,7 @@ Graph::reset_thread_list () } Glib::Threads::Mutex::Lock lm (_session.engine().process_lock()); - pthread_t a_thread; + jack_native_thread_t a_thread; if (!_thread_list.empty()) { drop_threads (); @@ -146,9 +146,8 @@ Graph::drop_threads () _callback_start_sem.signal (); - for (list<pthread_t>::iterator i = _thread_list.begin(); i != _thread_list.end(); ++i) { - void* status; - pthread_join (*i, &status); + for (list<jack_native_thread_t>::iterator i = _thread_list.begin(); i != _thread_list.end(); ++i) { + AudioEngine::instance()->stop_process_thread(*i); } _thread_list.clear (); |