瀏覽代碼

include/starpu_task.h: add documentation for magic field

Nathalie Furmento 13 年之前
父節點
當前提交
c7b299435f
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      include/starpu_task.h

+ 6 - 0
include/starpu_task.h

@@ -192,6 +192,12 @@ struct starpu_task
 	 * by hand (without starpu_task_create), this field should be set to
 	 * NULL. */
 	void *starpu_private;
+
+	/* the magic field is set when initialising the task.
+	 * starpu_task_submit will fail if the field does not have the
+	 * right value. This will hence avoid submitting tasks which
+	 * have not been properly initialised.
+	 */
 	int magic;
 };