- 博客(2)
- 收藏
- 关注
原创 5002.boost库之thread
最近学习 boost库,网上讲了很多的他的优势,跨平台、线程安全等 ,下面 咱们来看如何直接实现的吧。/*************************************************************************** * 名称:boost_thread.cpp * 描述:利用boost中线程库实现多线程编程.实现线程A,唤醒线程B进行计数 *...
2019-12-27 14:16:21 139 1
原创 5001 boost之bind库函数
参考博客:https://www.cnblogs.com/benxintuzi/p/4862129.html代码示例:int add(int a, int b){ cout << "a+b:" << a+b << endl; return a+b;}boost::bind(add, 10, _1)(20); //占位符...
2019-12-27 10:13:42 103
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人