From b79053b6e8211121166cededc8aa713607d40308 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 24 Nov 2008 18:37:37 +0000 Subject: QPID-1478: ensure concurrent publishers work correctly (as well as reported assertion, the test uncovered a potential deadlock due to bounds being expanded before frames were added to queue). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720251 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/Bounds.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpp/src/qpid/client/Bounds.cpp') diff --git a/cpp/src/qpid/client/Bounds.cpp b/cpp/src/qpid/client/Bounds.cpp index bbc08edc5e..e2ddb5dfec 100644 --- a/cpp/src/qpid/client/Bounds.cpp +++ b/cpp/src/qpid/client/Bounds.cpp @@ -48,8 +48,7 @@ void Bounds::reduce(size_t size) { if (current == 0) return; current -= std::min(size, current); if (current < max && lock.hasWaiters()) { - assert(lock.hasWaiters() == 1); - lock.notify(); + lock.notifyAll(); } } -- cgit v1.2.1