Redo and improve thread scheduling startup.
[pintos-anon] / src / threads / thread.h
index c4520580fcbca7b20bc1596eeb7bcc538db06d10..aab1a73902410757eac49b628ecf2e58670bc978 100644 (file)
@@ -35,9 +35,10 @@ struct thread
   };
 
 void thread_init (void);
-void thread_start (void) NO_RETURN;
+void thread_start (void);
 
-struct thread *thread_create (const char *name, void (*) (void *aux), void *);
+typedef void thread_func (void *aux);
+struct thread *thread_create (const char *name, thread_func *, void *);
 #ifdef USERPROG
 bool thread_execute (const char *filename);
 #endif