how to use std::lock_guard in dispatch block?

前端 未结 0 1322
终归单人心
终归单人心 2020-12-04 06:56

How can I use lock_guard in the dispatch block? Thanks a lot!

__block std::mutex mtx; // error here: Call to deleted constructor of \'std::mutex\'
dispatch_bl         


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