Condtion varible even when notified can't get out of std::condition_varible.wait(), but sometimes it can?

后端 未结 0 1331
挽巷
挽巷 2020-12-10 14:15

I have a while loop which is constantly locking & unlocking a mutex

while(true)
{
    mtx.lock();
    mess_with_global_data();
    thread         


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