pthread_equal returns non-zero if equal. amend 5ab0288
authorRobin Gareus <robin@gareus.org>
Tue, 30 Jun 2015 07:17:43 +0000 (09:17 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 30 Jun 2015 07:17:43 +0000 (09:17 +0200)
libs/backends/wavesaudio/waves_audiobackend.cc

index 2b0a98f23650f80d87634952e283dd0a75e16469..8619262d1c1570ce0c318780ac1047b43a1a38eb 100644 (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