summaryrefslogtreecommitdiffstats
path: root/threads/synch.h
diff options
context:
space:
mode:
Diffstat (limited to 'threads/synch.h')
-rw-r--r--threads/synch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/threads/synch.h b/threads/synch.h
index a19e88b..cdf415c 100644
--- a/threads/synch.h
+++ b/threads/synch.h
@@ -22,6 +22,8 @@ struct lock
22 { 22 {
23 struct thread *holder; /* Thread holding lock (for debugging). */ 23 struct thread *holder; /* Thread holding lock (for debugging). */
24 struct semaphore semaphore; /* Binary semaphore controlling access. */ 24 struct semaphore semaphore; /* Binary semaphore controlling access. */
25 int priority; /* the priority of the thread with the highest priority currently acquiring the lock */
26 struct list_elem elem; /* list element for (struct thread)->locks */
25 }; 27 };
26 28
27void lock_init (struct lock *); 29void lock_init (struct lock *);