cv_timedwait
int cv_timedwait(struct cv*, struct mtx*, int);
int status = cv_timedwait(&channel, mutex, timeout);