Lines Matching refs:cond
2 * Wrappers around mutex/cond/thread functions
93 void qemu_cond_init(QemuCond *cond)
97 err = pthread_cond_init(&cond->cond, NULL);
102 void qemu_cond_destroy(QemuCond *cond)
106 err = pthread_cond_destroy(&cond->cond);
111 void qemu_cond_signal(QemuCond *cond)
115 err = pthread_cond_signal(&cond->cond);
120 void qemu_cond_broadcast(QemuCond *cond)
124 err = pthread_cond_broadcast(&cond->cond);
129 void qemu_cond_wait(QemuCond *cond, QemuMutex *mutex)
133 err = pthread_cond_wait(&cond->cond, &mutex->lock);
138 int qemu_cond_timedwait(QemuCond *cond, QemuMutex *mutex, uint64_t msecs)
146 err = pthread_cond_timedwait(&cond->cond, &mutex->lock, &ts);