diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-12 11:29:47 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-12 11:29:47 -0400 |
commit | 4df3666738607039445ebc9fa083bf5c23ac5539 (patch) | |
tree | 3388082f2e73c020edde31796fd977a71cb3abae /libs/ardour/audioengine.cc | |
parent | 9f2ab81df6709d7b5d5701abbedc63d39e7330ab (diff) |
add AudioBackendNativeThread to serve the same role as jack_native_thread_t
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r-- | libs/ardour/audioengine.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 329de68bee..ba5b5ad525 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -816,7 +816,7 @@ AudioEngine::get_sync_offset (pframes_t& offset) const } int -AudioEngine::create_process_thread (boost::function<void()> func, pthread_t* thr, size_t stacksize) +AudioEngine::create_process_thread (boost::function<void()> func, AudioBackendNativeThread* thr, size_t stacksize) { if (!_backend) { return -1; @@ -824,6 +824,14 @@ AudioEngine::create_process_thread (boost::function<void()> func, pthread_t* thr return _backend->create_process_thread (func, thr, stacksize); } +int +AudioEngine::wait_for_process_thread_exit (AudioBackendNativeThread thr) +{ + if (!_backend) { + return 0; + } + return _backend->wait_for_process_thread_exit (thr); +} int AudioEngine::set_device_name (const std::string& name) |