13
0

pthread_equal returns non-zero if equal. amend 5ab0288

This commit is contained in:
Robin Gareus 2015-06-30 09:17:43 +02:00
parent 5ab0288c99
commit 5296a364c4

View File

@ -749,7 +749,7 @@ WavesAudioBackend::_audio_device_callback (const float* input_buffer,
AudioEngine::thread_init_callback (this);
}
if (pthread_equal (_main_thread, pthread_self()) != 0) {
if (pthread_equal (_main_thread, pthread_self()) == 0) {
#ifdef PTW32_VERSION
std::cerr << "Process thread ID has changed. Expected thread: " << _main_thread.p << " current thread: " << pthread_self().p << std::dec << " !" << std::endl;
#else