joining a thread: “resource deadlock avoided”

后端 未结 1 410
耶瑟儿~
耶瑟儿~ 2020-12-11 12:27

I use a c++ class that encapsulates a boost::asio::io_service.

class IoService {
 public:
  static IoService& getInstance() {
    static         


        
相关标签:
1条回答
  • 2020-12-11 13:03

    That's the error that you get when a thread tries to join itself.

    So it sounds like your problem is that you're calling the stop() method from a handler function that was invoked by the io_service.

    0 讨论(0)
提交回复
热议问题