Преглед на файлове

From Lionel: component_prio: do not keep the mutex when not needed anymore

Samuel Thibault преди 8 години
родител
ревизия
f3ae1e7caa
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/sched_policies/component_prio.c

+ 1 - 1
src/sched_policies/component_prio.c

@@ -162,9 +162,9 @@ static int prio_push_local_task(struct starpu_sched_component * component, struc
 		STARPU_ASSERT(!isnan(prio->exp_len));
 		STARPU_ASSERT(!isnan(prio->exp_start));
 		
+		STARPU_PTHREAD_MUTEX_UNLOCK(mutex);
 		if(!is_pushback)
 			component->can_pull(component);
-		STARPU_PTHREAD_MUTEX_UNLOCK(mutex);
 	}
 
 	return ret;