Skip to content

Conversation

gsz666-sysu
Copy link

修复了 ThreadPool 析构时的死锁问题

  1. 在工作线程的 lambda 中添加了对 stop 标志的检查
  2. 在析构函数中添加了 joinable() 检查
  3. 添加了测试用例验证修复效果

关联 Issue: #115

1. Add stop flag check in worker thread lambda

2. Add joinable() check in destructor

3. Add test cases for deadlock verification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant