diff options
author | Robin Gareus <robin@gareus.org> | 2015-06-30 09:17:43 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-06-30 09:17:43 +0200 |
commit | 5296a364c4fc719edbff3a3e419a630ff38bb6d4 (patch) | |
tree | 59506d8829ea8e965cc24bd0254bfbd76b4213b9 | |
parent | 5ab0288c991de3020d61c4f714aac36044a351fe (diff) |
pthread_equal returns non-zero if equal. amend 5ab0288
-rw-r--r-- | libs/backends/wavesaudio/waves_audiobackend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/backends/wavesaudio/waves_audiobackend.cc b/libs/backends/wavesaudio/waves_audiobackend.cc index 2b0a98f236..8619262d1c 100644 --- a/libs/backends/wavesaudio/waves_audiobackend.cc +++ b/libs/backends/wavesaudio/waves_audiobackend.cc @@ -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 |