mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 12:45:45 +01:00
fix all 4 backends' failure to include the main "backend" thread when computing ::in_process_thread()
This commit is contained in:
parent
aa0effb4cb
commit
68458cde69
6 changed files with 37 additions and 7 deletions
|
|
@ -758,6 +758,10 @@ AlsaAudioBackend::join_process_threads ()
|
|||
bool
|
||||
AlsaAudioBackend::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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue