Merge 'task1/priority-donation' into 'master' #14
@@ -226,6 +226,7 @@ lock_acquire (struct lock *lock)
|
||||
if (lock->holder != NULL)
|
||||
{
|
||||
t->waiting_lock = lock;
|
||||
donate_priority (t, lock->holder);
|
||||
}
|
||||
|
||||
sema_down (&lock->semaphore);
|
||||
|
||||
Reference in New Issue
Block a user