mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 13:15:44 +01:00
Session::auto_connect_thread_terminate() cannot use ::auto_connect_thread_wakeup() because that method is allowed to "fail".
Should fix hangs when closing a session with the ALSA backend (and perhaps others too).
This commit is contained in:
parent
ae6a5c95d7
commit
3d1eb9a6e5
1 changed files with 7 additions and 1 deletions
|
|
@ -7024,7 +7024,13 @@ Session::auto_connect_thread_terminate ()
|
|||
}
|
||||
}
|
||||
|
||||
auto_connect_thread_wakeup ();
|
||||
/* cannot use auto_connect_thread_wakeup() because that is allowed to
|
||||
* fail to wakeup the thread.
|
||||
*/
|
||||
|
||||
pthread_mutex_lock (&_auto_connect_mutex);
|
||||
pthread_cond_signal (&_auto_connect_cond);
|
||||
pthread_mutex_unlock (&_auto_connect_mutex);
|
||||
|
||||
void *status;
|
||||
pthread_join (_auto_connect_thread, &status);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue