From fadeb1d9714912e3d373782348abfad6e28d6075 Mon Sep 17 00:00:00 2001 From: Ali Mohammed <ali.mohammed@hpe.com> Date: Fri, 18 Nov 2022 03:38:49 -0600 Subject: [PATCH] reduce the overhead of message inseration in fifo queue --- maestro/fifo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maestro/fifo.c b/maestro/fifo.c index 2d0a40a3..16b23ed0 100644 --- a/maestro/fifo.c +++ b/maestro/fifo.c @@ -185,9 +185,9 @@ mstro_fifo_enqueue(mstro_fifo f, void* obj) kdq_push(uintptr_t, f->q, (uintptr_t)obj); - s= pthread_cond_broadcast(&f->cvar); + s= pthread_cond_signal(&f->cvar); if(s!=0) { - ERR("Failed to broadcast on fifo %p: %d (%s)\n", f, s, strerror(s)); + ERR("Failed to signal on fifo %p: %d (%s)\n", f, s, strerror(s)); stat=MSTRO_FAIL; } s = pthread_mutex_unlock(&f->lock); -- GitLab