activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Teemu Torma <>
Subject Re: [jira] Resolved: (AMQCPP-271) Connection shutdown crashes if the server went down
Date Sun, 06 Dec 2009 17:07:27 GMT
On Sunday 06 December 2009 17:38:54 Timothy Bish wrote:
> The method Thread::currentThread won't work after a call to the shutdown
> method for the library, which is why its important to clean up your
> ActiveMQ-CPP resources for calling it.

I meant that in multi-threading application where a thread that is not 
controlled my activemq-cpp tries to close a session, the Thread::currentThread 
throws because the thread never had a currentThread in the first place.

I tried just to remove the throw and return null pointer and everything 
appears to work fine.  Why not check the thread ids instead of thread 
structures in shutdown?  


View raw message