schedule: use STL list class instead of custom queue
[model-checker.git] / libthreads.h
index bf7acae804bc58a99d85cf883f9cf3d14e8b1bac..aa7faf44d255452c172e2db2cf40919e4453b555 100644 (file)
@@ -11,15 +11,15 @@ typedef enum thread_state {
 } thread_state;
 
 struct thread {
-       void (*start_routine);
+       void (*start_routine)();
        void *arg;
        ucontext_t context;
        void *stack;
-       int index;
+       int id;
        thread_state state;
 };
 
-int thread_create(struct thread *t, void (*start_routine), void *arg);
+int thread_create(struct thread *t, void (*start_routine)(), void *arg);
 void thread_join(struct thread *t);
 int thread_yield(void);
 struct thread *thread_current(void);