ソースを参照

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);