摘要:
参考:https://baptiste-wicht.com/posts/2012/03/cp11-concurrency-tutorial-part-2-protect-shared-data.html 1.通常情况下,当你在多个线程之间使用共享对象时,需要解决同步的问题。(synchronizat 阅读全文
posted @ 2018-05-23 20:37
卷积
阅读(182)
评论(0)
推荐(0)
摘要:
参考:https://baptiste-wicht.com/posts/2012/03/cpp11-concurrency-part1-start-threads.html# 1. 创建线程 使用std::thread构造线程,当你创建一个线程,需要给线程代码,其中一个选择便是传函数指针。所有的线程 阅读全文
posted @ 2018-05-23 19:26
卷积
阅读(178)
评论(0)
推荐(0)
浙公网安备 33010602011771号