byzin / Zisc

Zisc provides commonly used C++ classes and functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve ThreadPool class

byzin opened this issue · comments

commented

Improve ThreadPool class

Overview

  • spinlock using std::atomic_flag
    • The performance of spinlock isn't good
  • Replace std::shared_ptr to std::unique_ptr
  • Add some tests