nbsdx / ThreadPool

Lightweight, Generic, Pure C++11 ThreadPool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why use lk.unlock(); in line 151?

CheYulin opened this issue · comments

  • Could not understand one line of code
    • std::unique_lockstd::mutex lk, the std::unique_lockstd::mutex is designed with RAII, why do you add extra lk.unlock(); in line 151?
    • I am puzzled about that. Could you give me some hints? @nbsdx
commented

It was a mistake. There's no reason for it to be there.