From 158ea87fba909161a084c29feff29a168725fe4e Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 7 May 2012 18:01:20 +0200 Subject: first priority donation implementation --- threads/synch.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'threads/synch.h') 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 { struct thread *holder; /* Thread holding lock (for debugging). */ struct semaphore semaphore; /* Binary semaphore controlling access. */ + int priority; /* the priority of the thread with the highest priority currently acquiring the lock */ + struct list_elem elem; /* list element for (struct thread)->locks */ }; void lock_init (struct lock *); -- cgit v1.2.3