Browse Source

adding wc to the actual cv struct

tarfeef101 6 years ago
parent
commit
6bc94b391e
1 changed files with 2 additions and 1 deletions
  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 NULL;
   }
   }
 
 
- return cv;
+  cv->wc = wc;
+  return cv;
 }
 }
 
 
 void cv_destroy(struct cv * cv)
 void cv_destroy(struct cv * cv)