From 7b29648da5170cb516b48b9c1a53fe9e58b023ac Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Sun, 25 Feb 2024 12:19:34 +0100 Subject: [PATCH] server: concurrency issue, when 2 task are waiting for results, only one call thread is notified --- examples/server/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index b823fe0d4..71cc5b0b8 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -441,7 +441,7 @@ struct llama_server_response { { LOG_VERBOSE("queue_results.push_back", {}); queue_results.push_back(result); - condition_results.notify_one(); + condition_results.notify_all(); return; } }