aboutsummaryrefslogtreecommitdiff
path: root/posix-aio-compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix-aio-compat.c')
-rw-r--r--posix-aio-compat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/posix-aio-compat.c b/posix-aio-compat.c
index aa1b6f59c5..27b210cae1 100644
--- a/posix-aio-compat.c
+++ b/posix-aio-compat.c
@@ -61,10 +61,10 @@ static int cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
return ret;
}
-static void cond_broadcast(pthread_cond_t *cond)
+static void cond_signal(pthread_cond_t *cond)
{
- int ret = pthread_cond_broadcast(cond);
- if (ret) die2(ret, "pthread_cond_broadcast");
+ int ret = pthread_cond_signal(cond);
+ if (ret) die2(ret, "pthread_cond_signal");
}
static void thread_create(pthread_t *thread, pthread_attr_t *attr,
@@ -186,7 +186,7 @@ static int qemu_paio_submit(struct qemu_paiocb *aiocb, int is_write)
spawn_thread();
TAILQ_INSERT_TAIL(&request_list, aiocb, node);
mutex_unlock(&lock);
- cond_broadcast(&cond);
+ cond_signal(&cond);
return 0;
}