ref: ba4b0723d9e6d6ec72ca54016a932e72fbae46f7
dir: /libnpe_pthread/pthread_cond_wait.c/
#include "_pthread.h" int pthread_cond_wait(pthread_cond_t *const cond, pthread_mutex_t *const mutex) { qlock(cond->l); qunlock(mutex); rsleep(cond); qunlock(cond->l); qlock(mutex); return 0; }