2 * @brief Thread scheduler.
11 /* Forward declaration */
14 typedef enum enabled_type {
20 /** @brief The Scheduler class performs the mechanics of Thread execution
25 void add_thread(Thread *t);
26 void remove_thread(Thread *t);
27 void sleep(Thread *t);
29 Thread * next_thread(Thread *t);
30 Thread * get_current_thread() const;
32 enabled_type_t * get_enabled() { return is_enabled; };
36 /** The list of available Threads that are not currently running */
37 enabled_type_t * is_enabled;
39 int curr_thread_index;
40 void set_enabled(Thread *t, enabled_type_t enabled_status);
42 /** The currently-running Thread */
46 #endif /* __SCHEDULE_H__ */