X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=schedule.h;h=360b390512b4776d0af54eb331aa91682c4906c0;hp=ac69fa1163bfdfb3d8aff5a1f4ad249cdecb54e0;hb=3ffc7186fd49a2dd2a5f5756511614fb3f06ac56;hpb=73a2692873c559d422161f11843f14215e23948e diff --git a/schedule.h b/schedule.h index ac69fa1..360b390 100644 --- a/schedule.h +++ b/schedule.h @@ -2,7 +2,19 @@ #define __SCHEDULE_H__ #include "libthreads.h" +#include "model.h" +struct scheduler { + void (*init)(void); + void (*exit)(void); + void (*add_thread)(struct thread *t); + struct thread * (*next_thread)(void); + struct thread * (*get_current_thread)(void); + + void *priv; +}; + +void scheduler_init(struct model_checker *mod); void schedule_add_thread(struct thread *t); struct thread *schedule_choose_next(void);