Lines Matching refs:cond
79 static void __cond_init(struct cond *cnd, bool pshared) in __cond_init()
87 CHECK_ERR(pthread_cond_init(&cnd->cond, &attr)); in __cond_init()
91 void cond_init(struct cond *cnd) in cond_init()
96 void cond_init_pshared(struct cond *cnd) in cond_init_pshared()
101 void cond_destroy(struct cond *cnd) in cond_destroy()
103 CHECK_ERR(pthread_cond_destroy(&cnd->cond)); in cond_destroy()
106 void cond_wait(struct cond *cnd, struct mutex *mtx) in cond_wait()
108 CHECK_ERR(pthread_cond_wait(&cnd->cond, &mtx->lock)); in cond_wait()
111 void cond_signal(struct cond *cnd) in cond_signal()
113 CHECK_ERR(pthread_cond_signal(&cnd->cond)); in cond_signal()
116 void cond_broadcast(struct cond *cnd) in cond_broadcast()
118 CHECK_ERR(pthread_cond_broadcast(&cnd->cond)); in cond_broadcast()