13
0

Remove incorrect code for mingw in DummyAudioBackend::in_process_thread

I'm assuming this section was copied from the JackAudioBackend where the
thread type is not pthread_t for mingw, but in the DummyAudioBackend it
is.
This commit is contained in:
Tim Mayberry 2014-05-13 14:56:26 +10:00
parent 2379321355
commit b565357bf4

View File

@ -430,15 +430,9 @@ DummyAudioBackend::in_process_thread ()
{
for (std::vector<pthread_t>::const_iterator i = _threads.begin (); i != _threads.end (); ++i)
{
#ifdef COMPILER_MINGW
if (*i == GetCurrentThread ()) {
return true;
}
#else // pthreads
if (pthread_equal (*i, pthread_self ()) != 0) {
return true;
}
#endif
}
return false;
}