摘要:
weak callback std::forward https://zh.cppreference.com/w/cpp/utility/forward https://blog.csdn.net/linuxheik/article/details/86411093 阅读全文
posted @ 2019-10-31 22:18
manch1n
阅读(583)
评论(0)
推荐(0)
摘要:
最近两天看了以下《The C++ Standard library》里介绍的并发模型。今天搞了一下午,排查了bug,终于搞定了: 总体来讲还是比pthread提供的接口要简洁。 定义task threadpool.h threadpool.cc 测试一下: 输出: 阅读全文
posted @ 2019-10-31 19:16
manch1n
阅读(851)
评论(0)
推荐(0)
浙公网安备 33010602011771号