瀏覽代碼

drop spurious changes

Samuel Thibault 4 年之前
父節點
當前提交
455c1926b7
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/sched_policies/component_eager.c

+ 1 - 5
src/sched_policies/component_eager.c

@@ -35,15 +35,11 @@ static int eager_push_task(struct starpu_sched_component * component, struct sta
 	struct _starpu_eager_data *d = component->data;
 	struct starpu_sched_component *target;
 
-	//STARPU_COMPONENT_MUTEX_LOCK(&d->scheduling_mutex);
-	if (d->ntasks == 0) {
+	if (d->ntasks == 0)
 		/* We have already pushed a task down */
-		//STARPU_COMPONENT_MUTEX_UNLOCK(&d->scheduling_mutex);
 		return 1;
-	}
 	if (d->ntasks > 0)
 		d->ntasks--;
-	//STARPU_COMPONENT_MUTEX_UNLOCK(&d->scheduling_mutex);
 
 	if ((target = d->target))
 	{