view DPP/scheduler.h @ 33:3946f8d26710 draft default tip

add benchmarck/binary-trees
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 09 Apr 2013 16:41:30 +0900
parents 6695c97470f3
children
line wrap: on
line source

/*
** Dining Philosophers Problem's scheduler
*/

extern struct task * current_task;
code scheduler(PhilsPtr self, TaskPtr task);

/* defined in file scheduler.cbc at offset 457  */
int list_length (TaskPtr list);

/* defined in file scheduler.cbc at offset 641  */
TaskPtr get_task (int num, TaskPtr list);

/* defined in file scheduler.cbc at offset 753  */
code get_next_task_random (TaskPtr list);

/* defined in file scheduler.cbc at offset 1001  */
code get_next_task_fifo (TaskPtr list);

/* defined in file scheduler.cbc at offset 1188  */
code scheduler (PhilsPtr phils, TaskPtr list);

/* defined in file scheduler.cbc at offset 1338  */
code task_entry2 (int count,PhilsPtr self, TaskPtr list,TaskPtr last, TaskPtr q);

/* defined in file scheduler.cbc at offset 1541  */
code task_entry1 (int count, PhilsPtr self, TaskPtr list, TaskPtr last);

/* defined in file scheduler.cbc at offset 1901  */
code task_entry0 (int count, PhilsPtr self, TaskPtr list, TaskPtr last, TaskPtr q);

/* defined in file scheduler.cbc at offset 2026  */
code init_final (PhilsPtr self);

/* defined in file scheduler.cbc at offset 2204  */
code init_phils2 (PhilsPtr self, int count, int id);

/* defined in file scheduler.cbc at offset 2698  */
code init_fork2 (PhilsPtr self, int count, int id);

/* defined in file scheduler.cbc at offset 2986  */
code init_phils1 (ForkPtr fork, int count, int id);

/* defined in file scheduler.cbc at offset 3360  */
code init_fork1 (int count);

/* defined in file scheduler.cbc at offset 3588  */
code die (char *err);


/* end */