Explorar el Código

adding wc to the actual cv struct

tarfeef101 hace 7 años
padre
commit
6bc94b391e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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)