Browse Source

add missing if condition

Olivier Aumage 8 years ago
parent
commit
5aa99f50a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/workers.h

+ 1 - 1
src/core/workers.h

@@ -1010,7 +1010,7 @@ static inline int _starpu_worker_trylock(int workerid)
 				STARPU_PTHREAD_MUTEX_UNLOCK_SCHED(&worker->sched_mutex);
 		}
 	}
-	if (!ret)
+	if (!ret && workerid != cur_workerid)
 	{
 		_starpu_worker_relax_on();
 	}