merlimat commented on issue #6277: [Issue 4070][pulsar-client-cpp] Fix for 
possible deadlock when closing Pulsar client
URL: https://github.com/apache/pulsar/pull/6277#issuecomment-584765616
 
 
   @heronr I don't think there's a thread leak. Rather, the error seems to be 
that the `std::thread` object is destroyed before the actual thread was 
stopped. 
   
   The main issue I see here is that the `~std::thread()` is being invoked from 
the thread itself and therefore it's not "joined" and it cannot be "joined" 
under any circumstance.
   
   I believe the only solution is that we should ensure, that 
`~ExecutorService()` is never called from the same thread.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to