模板std::mutex用法:

std::mutex mymutex;
std::lock_guard<std::mutex> lock(mymutex);

 

posted @ 2018-11-20 15:48  天使冰王  阅读(298)  评论(0编辑  收藏  举报