浏览代码

Add a notify function in the scheduler component structure

 - The file include/starpu_sched_component.h was modified too to add a notify function
   in the component structure.

(partially cherry picked from commit cab1cfdb17b8c24be347edc2b1d1b8d0877eb8a8)
Arthur Chevalier 8 年之前
父节点
当前提交
0158d7cdf5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/starpu_sched_component.h

+ 2 - 0
include/starpu_sched_component.h

@@ -63,6 +63,8 @@ struct starpu_sched_component
 	int (*can_push)(struct starpu_sched_component *from, struct starpu_sched_component *to);
 	int (*can_pull)(struct starpu_sched_component *component);
 
+	int (*notify)(struct starpu_sched_component* component, int message_ID, void* arg);
+
 	double (*estimated_load)(struct starpu_sched_component *component);
 	double (*estimated_end)(struct starpu_sched_component *component);