To allow proper shutting down of threads.
No test info. Putting NEEDINFO flag.
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.
Fixed by r711838.
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
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