1 2 #ifndef __CV_H__ 3 #define __CV_H__ 4 5 typedef struct CV { 6 WaitChannel chan; 7 } CV; 8 9 void CV_Init(CV *cv, const char *name); 10 void CV_Destroy(CV *cv); 11 void CV_Wait(CV *cv, Mutex *mtx); 12 void CV_Signal(CV *cv); 13 void CV_Broadcast(CV *cv); 14 15 #endif /* __CV_H__ */ 16 17