瀏覽代碼

forgot to modify header with extra CV fields

tarfeef101 6 年之前
父節點
當前提交
caa0f7fa4e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      kern/include/synch.h

+ 4 - 4
kern/include/synch.h

@@ -113,10 +113,10 @@ void lock_destroy(struct lock *);
  * (should be) made internally.
  */
 
-struct cv {
-        char *cv_name;
-        // add what you need here
-        // (don't forget to mark things volatile as needed)
+struct cv
+{
+  char * cv_name;
+  struct wchan * wc;
 };
 
 struct cv *cv_create(const char *name);