From bfcf1152981750241178be7bc8baab1e9f14c0a9 Mon Sep 17 00:00:00 2001
From: Robert Schmidt <robert.schmidt@openairinterface.org>
Date: Mon, 21 Nov 2022 13:47:41 +0100
Subject: [PATCH] Tpool: use condbroadcast() in case multiple waits on the same
 signal

---
 common/utils/threadPool/thread-pool.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/utils/threadPool/thread-pool.h b/common/utils/threadPool/thread-pool.h
index 81eef5d7e7..b356599546 100644
--- a/common/utils/threadPool/thread-pool.h
+++ b/common/utils/threadPool/thread-pool.h
@@ -237,7 +237,7 @@ static inline void abortNotifiedFIFO(notifiedFIFO_t *nf) {
   if (nf->outF == NULL)
     nf->inF = NULL;
   mutexunlock(nf->lockF);
-  condsignal(nf->notifF);
+  condbroadcast(nf->notifF);
 }
 
 struct one_thread {
-- 
2.26.2