From b1560445f2f700fbd6c243a4aea38ce38e49a426 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 19 Feb 2018 11:57:19 +0200 Subject: pthread: implement bionic_pthread_cond_wait --- src/libpthread.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libpthread.c b/src/libpthread.c index db11fc5..b09a0ba 100644 --- a/src/libpthread.c +++ b/src/libpthread.c @@ -197,3 +197,12 @@ bionic_pthread_cond_signal(bionic_cond_t *cond) INIT_IF_NOT_MAPPED(cond, default_pthread_cond_init); return pthread_cond_signal(cond->glibc); } + +int +bionic_pthread_cond_wait(bionic_cond_t *cond, bionic_mutex_t *mutex) +{ + assert(cond && mutex); + INIT_IF_NOT_MAPPED(cond, default_pthread_cond_init); + INIT_IF_NOT_MAPPED(mutex, default_pthread_mutex_init); + return pthread_cond_wait(cond->glibc, mutex->glibc); +} -- cgit v1.2.3-70-g09d2