std::condition_variable::wait in c++

前端 未结 0 1840
别跟我提以往
别跟我提以往 2020-12-24 13:03

I am slightly confused in mutex, lock, and wait.

Here is my code:

void producer(std::mutex* m, std::condition_variable* cv,bool* signal) {

    std::th         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题