Bug 461292

Summary: Add Dispatcher::wait() and corresponding SubscriptionManger::wait()
Product: Red Hat Enterprise MRG Reporter: Gordon Sim <gsim>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED ERRATA QA Contact: Kim van der Riet <kim.vdriet>
Severity: medium Docs Contact:
Priority: high    
Version: 1.0CC: freznice
Target Milestone: 1.1   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-04 15:36:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test program none

Description Gordon Sim 2008-09-05 16:53:33 UTC
To allow proper shutting down of threads.

Comment 1 Frantisek Reznicek 2008-10-31 16:14:56 UTC
No test info. Putting NEEDINFO flag.

Comment 2 Gordon Sim 2008-11-06 10:45:24 UTC
Created attachment 322694 [details]
test program

This involves the addition of a wait() method to the public interface of SubscriptionManager (and Dispatcher, though that tends not to be used by applications directly).

ClientSessionTest.cpp: testRelease() uses the new methods and is run as part of the unit tests.

Attached is a standalone test that can be compiled and run against an installation. It uses start() and the new wait() method; if it completes normally (prints Performed 10 iterations) the method works.

Comment 3 Gordon Sim 2008-11-06 10:48:59 UTC
Fixed by r711838.

Comment 5 Frantisek Reznicek 2008-12-12 14:16:30 UTC
Manually validated on RHEL 5.2 / 4.7, i386 / x86_64 on packages
qpidd-0.4.725652-2.el5 using comment #2 example code.

->VERIFIED

Comment 7 errata-xmlrpc 2009-02-04 15:36:18 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-0035.html