summaryrefslogtreecommitdiff
path: root/libs/ardour/graph.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2013-08-07 21:16:27 +1000
committerTim Mayberry <mojofunk@gmail.com>2013-09-06 14:30:54 +1000
commite6c7ecf0e369ba886a7dc57a195226921f0f11f1 (patch)
tree0e3ed87b271fa34676e168243f41bf4c9e2d8ca1 /libs/ardour/graph.cc
parent87a440553fba0fd244b88326e83b903b0c103c99 (diff)
Ifdef some non-portable code for MinGW
jack_native_thread_t is HANDLE for MinGW builds of jack so using pthread API cannot work.
Diffstat (limited to 'libs/ardour/graph.cc')
-rw-r--r--libs/ardour/graph.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc
index fe76fd74ed..2425f8b6ef 100644
--- a/libs/ardour/graph.cc
+++ b/libs/ardour/graph.cc
@@ -584,10 +584,12 @@ Graph::process_one_route (Route* route)
bool
Graph::in_process_thread () const
{
+#ifndef COMPILER_MINGW
for (list<pthread_t>::const_iterator i = _thread_list.begin (); i != _thread_list.end(); ++i) {
if (pthread_equal(*i, pthread_self())) {
return true;
}
}
+#endif
return false;
}