How do I terminate/stop all other thread when I catch specific value in one of the thread execution (in activemq cpp)?

  activemq, activemq-cpp, c++, multithreading

How do I terminate/stop all other thread when I catch specific value in one of the thread execution (in activemq cpp)?

I have parallely launched 5 threads which are calling specific function. If one of them returns some specific value, I need to terminate the further processing of all other remaining threads and the specific function is called asynchronously in the onMessage() method.


Source: StackOverflow C++

LEAVE A COMMENT