Remove incorrect code for mingw in DummyAudioBackend::in_process_thread
authorTim Mayberry <mojofunk@gmail.com>
Tue, 13 May 2014 04:56:26 +0000 (14:56 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 13 May 2014 23:48:33 +0000 (09:48 +1000)
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.

libs/backends/dummy/dummy_audiobackend.cc

index 7a3aa78513caf726b0f08d80d3e402eb13cd5a61..6bc6e6da6ec56b00f4b97289c97290d81ef89089 100644 (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;
 }