Print statistics at power off.
[pintos-anon] / src / threads / thread.h
index 26e785fc8d429514c627fb9a8a3922a27f0faaf3..c0551273d80b5927ad0f41f76f94ca598a9de9b7 100644 (file)
@@ -93,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
 
@@ -103,6 +103,8 @@ 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 *);