From 2e3f5c3fbcbb884c832416d1b4c5326b390470b4 Mon Sep 17 00:00:00 2001 From: Nikolay Mitev Date: Sun, 15 Jun 2025 15:58:52 +0200 Subject: [PATCH] Signal correct condition variable --- Chapter_04/mutex_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter_04/mutex_queue.h b/Chapter_04/mutex_queue.h index 5859f0d..bc9bfac 100644 --- a/Chapter_04/mutex_queue.h +++ b/Chapter_04/mutex_queue.h @@ -62,7 +62,7 @@ class queue { lock.unlock(); - not_empty_.notify_one(); + not_full_.notify_one(); return true; }