'libs/ardour' - Main body of changes required for building with MSVC
[ardour.git] / libs / ardour / graph.cc
index 12752c158e91e0b54cbc0ba1c4ae9a9d87365c1d..fe76fd74edf0bbe3c439d272ee3dcd96479334a2 100644 (file)
@@ -584,12 +584,10 @@ Graph::process_one_route (Route* route)
 bool
 Graph::in_process_thread () const
 {
-#ifndef WIN32
        for (list<pthread_t>::const_iterator i = _thread_list.begin (); i != _thread_list.end(); ++i) {
-               if (*i == pthread_self()) {
+               if (pthread_equal(*i, pthread_self())) {
                        return true;
                }
        }
        return false;
-#endif
 }