Quellcode durchsuchen

didn't do a while

tarfeef101 vor 7 Jahren
Ursprung
Commit
de006e8ac8
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      kern/thread/synch.c

+ 1 - 1
kern/thread/synch.c

@@ -189,7 +189,7 @@ void lock_acquire(struct lock * lock)
   
   spinlock_acquire(&(lock->spin));
   
-  if (lock->owner)
+  while (lock->owner)
   {
     wchan_lock(lock->wc);
     spinlock_release(&(lock->spin));