Explorar el Código

desparately trying a reordering

tarfeef101 hace 7 años
padre
commit
60ce6f9bf5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      kern/thread/synch.c

+ 1 - 1
kern/thread/synch.c

@@ -168,8 +168,8 @@ struct lock * lock_create(const char * name)
     return NULL;
   }
   
-  lock->owner = NULL;
   spinlock_init(&(lock->spin));
+  lock->owner = NULL;
     
   return lock;
 }