Parcourir la source

adding wc to the actual cv struct

tarfeef101 il y a 7 ans
Parent
commit
6bc94b391e
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      kern/thread/synch.c

+ 2 - 1
kern/thread/synch.c

@@ -247,7 +247,8 @@ struct cv * cv_create(const char * name)
     return NULL;
   }
 
- return cv;
+  cv->wc = wc;
+  return cv;
 }
 
 void cv_destroy(struct cv * cv)