Andra Hugo 13 years ago
parent
commit
35c023a7ff
1 changed files with 18 additions and 0 deletions
  1. 18 0
      doc/chapters/sched_ctx_hypervisor.texi

+ 18 - 0
doc/chapters/sched_ctx_hypervisor.texi

@@ -369,6 +369,24 @@ Returns the flops of a context elapsed from the last resize
 Returns the name of the resizing policy the hypervisor uses
 @end deftypefun
 
+@node Source code
+@subsection Source code
+@cartouche
+@smallexample
+
+struct hypervisor_policy dummy_policy = 
+{
+       .handle_poped_task = dummy_handle_poped_task,
+       .handle_pushed_task = dummy_handle_pushed_task,
+       .handle_idle_cycle = dummy_handle_idle_cycle,
+       .handle_idle_end = dummy_handle_idle_end,
+       .handle_post_exec_hook = dummy_handle_post_exec_hook,
+       .custom = 1,
+       .name = ``dummy''
+};
+
+@end smallexample
+@end cartouche
 
 @c Local Variables:
 @c TeX-master: "../starpu.texi"