X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fthread.h;h=c0551273d80b5927ad0f41f76f94ca598a9de9b7;hb=838c30d0075a3ee0413ba4909944b37f4970a10d;hp=56b84a7dbff4018afa816fd324ff02eb8dbcc675;hpb=b9af99cb736da974d495e6e4904e599746407476;p=pintos-anon diff --git a/src/threads/thread.h b/src/threads/thread.h index 56b84a7..c055127 100644 --- a/src/threads/thread.h +++ b/src/threads/thread.h @@ -5,10 +5,6 @@ #include #include -#ifdef USERPROG -#include "userprog/addrspace.h" -#endif - /* States in a thread's life cycle. */ enum thread_status { @@ -97,7 +93,7 @@ struct thread list_elem elem; /* List element. */ #ifdef USERPROG - /* Owned by userprog/addrspace.c. */ + /* Owned by userprog/process.c. */ uint32_t *pagedir; /* Page directory. */ #endif @@ -107,12 +103,11 @@ struct thread void thread_init (void); void thread_start (void); +void thread_tick (void); +void thread_print_stats (void); typedef void thread_func (void *aux); tid_t thread_create (const char *name, int priority, thread_func *, void *); -#ifdef USERPROG -tid_t thread_execute (const char *filename); -#endif void thread_unblock (struct thread *);