diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-10-22 17:02:15 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-10-22 17:07:11 -0400 |
commit | 68458cde69bb6aae4dc8d3e5dce3e0ddc1be32e6 (patch) | |
tree | efefa6245cac2907d73d481c816b660d2af2f63f /libs/backends/dummy | |
parent | aa0effb4cb38f4c3a06564bd9e6a0ee516d4f958 (diff) |
fix all 4 backends' failure to include the main "backend" thread when computing ::in_process_thread()
Diffstat (limited to 'libs/backends/dummy')
-rw-r--r-- | libs/backends/dummy/dummy_audiobackend.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/backends/dummy/dummy_audiobackend.cc b/libs/backends/dummy/dummy_audiobackend.cc index f2455702b5..567b7485e3 100644 --- a/libs/backends/dummy/dummy_audiobackend.cc +++ b/libs/backends/dummy/dummy_audiobackend.cc @@ -516,6 +516,10 @@ DummyAudioBackend::join_process_threads () bool DummyAudioBackend::in_process_thread () { + if (pthread_equal (_main_thread, pthread_self()) != 0) { + return true; + } + for (std::vector<pthread_t>::const_iterator i = _threads.begin (); i != _threads.end (); ++i) { if (pthread_equal (*i, pthread_self ()) != 0) { |