From commits-return-8855-apmail-activemq-commits-archive=activemq.apache.org@activemq.apache.org Thu Jul 10 15:04:09 2008 Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 97216 invoked from network); 10 Jul 2008 15:04:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 15:04:09 -0000 Received: (qmail 69184 invoked by uid 500); 10 Jul 2008 15:04:09 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 69130 invoked by uid 500); 10 Jul 2008 15:04:09 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 69121 invoked by uid 99); 10 Jul 2008 15:04:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 08:04:09 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 15:03:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1E58F2388A15; Thu, 10 Jul 2008 08:03:18 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r675606 - /activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConsumer.cpp Date: Thu, 10 Jul 2008 15:03:17 -0000 To: commits@activemq.apache.org From: nmittler@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080710150318.1E58F2388A15@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: nmittler Date: Thu Jul 10 08:03:16 2008 New Revision: 675606 URL: http://svn.apache.org/viewvc?rev=675606&view=rev Log: [AMQCPP-188] - Waking up synchronous consumers on a call to consumer.close() Modified: activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConsumer.cpp Modified: activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConsumer.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConsumer.cpp?rev=675606&r1=675605&r2=675606&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConsumer.cpp (original) +++ activemq/activemq-cpp/trunk/src/main/activemq/core/ActiveMQConsumer.cpp Thu Jul 10 08:03:16 2008 @@ -107,6 +107,12 @@ haveException = true; } } + + // Wakeup any synchronous consumers. + synchronized( &unconsumedMessages ) + { + unconsumedMessages.notifyAll(); + } // If we encountered an error, propagate it. if( haveException ){