Mark thread_start() NO_RETURN.
[pintos-anon] / src / threads / thread.h
index 8a0df6e254052ff7c8a8ee1b44fda01876fc1e4e..efa3a024c419604a0e5beca2b68bb1cbc9e4a996 100644 (file)
@@ -2,6 +2,7 @@
 #define HEADER_THREAD_H 1
 
 #include <stdint.h>
+#include "debug.h"
 #include "list.h"
 
 #ifdef USERPROG
@@ -38,13 +39,12 @@ struct thread *thread_current (void);
 bool thread_execute (const char *filename);
 #endif
 
-void thread_start (struct thread *);
+void thread_start (struct thread *) NO_RETURN;
 void thread_ready (struct thread *);
-void thread_exit (void);
+void thread_exit (void) NO_RETURN;
 
 void thread_yield (void);
 void thread_sleep (void);
-void thread_schedule (void);
 
 void thread_self_test (void);