summaryrefslogtreecommitdiff
path: root/libs/ardour/graph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/graph.cc')
-rw-r--r--libs/ardour/graph.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc
index 03ba4d969a..5b435884d4 100644
--- a/libs/ardour/graph.cc
+++ b/libs/ardour/graph.cc
@@ -597,10 +597,10 @@ Graph::process_one_route (Route* route)
bool
Graph::in_process_thread () const
{
- list<pthread_t>::const_iterator i = _thread_list.begin ();
- while (i != _thread_list.end() && *i != pthread_self ()) {
- ++i;
+ for (list<pthread_t>::const_iterator i = _thread_list.begin (); i != _thread_list.end(); ++i) {
+ if (*i == pthread_self()) {
+ return true;
+ }
}
-
- return i != _thread_list.end ();
+ return false;
}