摘要:
1.线程池,共享线程安全队列 例子:osmium thread 模块 thread_safe_queue<task> =>work thread1 => ... thread_safe_queue<result> =>work thread n => 2.使用双buffer无锁化 例子:http:/ 阅读全文
posted @ 2019-07-25 22:01
water_bear
阅读(185)
评论(0)
推荐(0)
摘要:
1.代理模式 2.模版 3.NVI(non-virtual interface) 参考:https://www.cnblogs.com/qicosmos/p/4772389.html 《effective C++》条款35:考虑virtual函数以外的其他选择 阅读全文
posted @ 2019-07-25 09:09
water_bear
阅读(421)
评论(0)
推荐(0)

浙公网安备 33010602011771号