29 lines
772 B
Diff
29 lines
772 B
Diff
From a9f3b002da2405eb93876610608f968d8108a2b6 Mon Sep 17 00:00:00 2001
|
|
From: Simo Sorce <simo@redhat.com>
|
|
Date: Mon, 11 Mar 2024 17:17:00 -0400
|
|
Subject: [PATCH] Remove from the correct list
|
|
|
|
Fixes #92
|
|
|
|
Signed-off-by: Simo Sorce <simo@redhat.com>
|
|
---
|
|
src/gp_workers.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/gp_workers.c b/src/gp_workers.c
|
|
index 78e8347..0519777 100644
|
|
--- a/src/gp_workers.c
|
|
+++ b/src/gp_workers.c
|
|
@@ -189,7 +189,7 @@ void gp_workers_free(struct gp_workers *w)
|
|
while (w->busy_list) {
|
|
/* pick threads one by one */
|
|
t = w->busy_list;
|
|
- LIST_DEL(w->free_list, t);
|
|
+ LIST_DEL(w->busy_list, t);
|
|
|
|
/* wake up threads, then join them */
|
|
/* ======> COND_MUTEX */
|
|
--
|
|
2.33.0
|
|
|