Don't destroy current thread's pagedir before activating a different
[pintos-anon] / src / threads / thread.h
index c4520580fcbca7b20bc1596eeb7bcc538db06d10..e8927def25ebc99594a541425096ddc6eff8c4e4 100644 (file)
@@ -35,19 +35,20 @@ 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
 
-void thread_wake (struct thread *);
+void thread_unblock (struct thread *);
 const char *thread_name (struct thread *);
 
 struct thread *thread_current (void);
 void thread_exit (void) NO_RETURN;
 void thread_yield (void);
-void thread_sleep (void);
+void thread_block (void);
 
 #endif /* thread.h */