Fix attempt to donate priority within lock acquisition w/ S
This commit is contained in:
@@ -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