Ver código fonte

adding wc to the actual cv struct

tarfeef101 6 anos atrás
pai
commit
6bc94b391e
1 arquivos alterados com 2 adições e 1 exclusões
  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)