Browse Source

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 years ago
parent
commit
0158d7cdf5
1 changed files with 2 additions and 0 deletions
  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);