fix all 4 backends' failure to include the main "backend" thread when computing ::in_process_thread()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user