terminate called after throwing an instance of 'std::system_error' threadpool

前端 未结 1 1950
春和景丽
春和景丽 2021-01-23 17:36

When I run my code :

nb workers = 12
I\'m i : 0
HELLO I\'m func1
BYE I\'m func2
terminate called after throwing an instance of \'std::system_error\'
  what():  I         


        
相关标签:
1条回答
  • 2021-01-23 17:50

    Your m_lockJobsList mutex (and m_notifyJob condvar) gets destroyed before m_workers threads that try to lock it when wake after condvar notification at ThreadPool destructor.

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