Browse Source

no need to release the sched_mutex for multiformat anymore

Olivier Aumage 8 years ago
parent
commit
f5684e3904
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/sched_policy.c

+ 2 - 2
src/core/sched_policy.c

@@ -951,7 +951,7 @@ pick:
 	 * We do have a task that uses multiformat handles. Let's create the
 	 * required conversion tasks.
 	 */
-	STARPU_PTHREAD_MUTEX_UNLOCK_SCHED(&worker->sched_mutex);
+	_starpu_worker_enter_section_safe_for_observation();
 	unsigned i;
 	unsigned nbuffers = STARPU_TASK_GET_NBUFFERS(task);
 	for (i = 0; i < nbuffers; i++)
@@ -975,7 +975,7 @@ pick:
 
 	task->mf_skip = 1;
 	starpu_task_list_push_back(&worker->local_tasks, task);
-	STARPU_PTHREAD_MUTEX_LOCK_SCHED(&worker->sched_mutex);
+	_starpu_worker_leave_section_safe_for_observation();
 	goto pick;
 
 profiling: