13
0

Implement JACKAudioBackend::in_process_thread

This commit is contained in:
Tim Mayberry 2013-10-03 19:38:58 +10:00
parent 53ad2d187f
commit f3a22fb880

View File

@ -871,7 +871,19 @@ JACKAudioBackend::join_process_threads ()
bool bool
JACKAudioBackend::in_process_thread () JACKAudioBackend::in_process_thread ()
{ {
// XXX TODO for (std::vector<jack_native_thread_t>::const_iterator i = _jack_threads.begin ();
i != _jack_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; return false;
} }