projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make more useful.
[pintos-anon]
/
src
/
threads
/
thread.h
diff --git
a/src/threads/thread.h
b/src/threads/thread.h
index 56b84a7dbff4018afa816fd324ff02eb8dbcc675..9b55700315ec4b293530a00b5b367d761f5c1768 100644
(file)
--- a/
src/threads/thread.h
+++ b/
src/threads/thread.h
@@
-5,10
+5,6
@@
#include <list.h>
#include <stdint.h>
#include <list.h>
#include <stdint.h>
-#ifdef USERPROG
-#include "userprog/addrspace.h"
-#endif
-
/* States in a thread's life cycle. */
enum thread_status
{
/* States in a thread's life cycle. */
enum thread_status
{
@@
-97,7
+93,7
@@
struct thread
list_elem elem; /* List element. */
#ifdef USERPROG
list_elem elem; /* List element. */
#ifdef USERPROG
- /* Owned by userprog/
addrspace
.c. */
+ /* Owned by userprog/
process
.c. */
uint32_t *pagedir; /* Page directory. */
#endif
uint32_t *pagedir; /* Page directory. */
#endif
@@
-110,9
+106,6
@@
void thread_start (void);
typedef void thread_func (void *aux);
tid_t thread_create (const char *name, int priority, thread_func *, 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 *);
void thread_unblock (struct thread *);