Permalink
Browse files

first step

  • Loading branch information...
1 parent 81ebaad commit 33aedeb8629e455caca0a636702830ca13b528de @grantborthwick committed Oct 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/threads/thread.c
  2. +1 −1 src/threads/thread.h
View
@@ -516,7 +516,7 @@ init_thread (struct thread *t, const char *name, int priority)
t->stack = (uint8_t *) t + PGSIZE;
t->priority = priority;
t->magic = THREAD_MAGIC;
- list_init(&t->locks);
+ list_init(&t->benefactors);
list_push_back (&all_list, &t->allelem);
sema_init(&t->sema_wakeup, 0);
}
View
@@ -95,7 +95,7 @@ struct thread
/* Shared between thread.c and synch.c. */
struct list_elem elem; /* List element. */
struct list_elem timer_list_elem;
- struct list locks;
+ struct list benefactors;
#ifdef USERPROG
/* Owned by userprog/process.c. */
uint32_t *pagedir; /* Page directory. */

0 comments on commit 33aedeb

Please sign in to comment.