Browse Source

desparately trying a reordering

tarfeef101 7 years ago
parent
commit
60ce6f9bf5
1 changed files with 1 additions and 1 deletions
  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;
 }