refactor thread struct to keep all changes together
This commit is contained in:
@@ -104,13 +104,14 @@ struct thread
|
|||||||
struct list_elem donor_elem; /* List element so that thread can be
|
struct list_elem donor_elem; /* List element so that thread can be
|
||||||
enlisted in other donors list. */
|
enlisted in other donors list. */
|
||||||
|
|
||||||
/* Shared between thread.c and synch.c. */
|
|
||||||
struct list_elem elem; /* List element. */
|
|
||||||
|
|
||||||
/* MLFQS items */
|
/* MLFQS items */
|
||||||
int nice; /* Nice value for this thread */
|
int nice; /* Nice value for this thread */
|
||||||
fp32_t recent_cpu; /* Amount of time this process received */
|
fp32_t recent_cpu; /* Amount of time this process received */
|
||||||
|
|
||||||
|
/* Shared between thread.c and synch.c. */
|
||||||
|
struct list_elem elem; /* List element. */
|
||||||
|
|
||||||
|
|
||||||
#ifdef USERPROG
|
#ifdef USERPROG
|
||||||
/* Owned by userprog/process.c. */
|
/* Owned by userprog/process.c. */
|
||||||
uint32_t *pagedir; /* Page directory. */
|
uint32_t *pagedir; /* Page directory. */
|
||||||
|
|||||||
Reference in New Issue
Block a user