Since the onMessage() function runs in a separate thread, how do I safely
delete a cms::MessageListener object in the main thread using C++11?  If the
reply I am looking for never comes, I want to give up on listening for it
and throw away this object.  But what if in the process of deleting this
object in the main thread, the onMessage() function gets called in the
separate thread?  In other words, how do I stop listening for messages and
clean up safely from the main thread?

Steve Rice




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/how-to-safely-delete-a-cms-MessageListener-object-tp4689939.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to