boost扩展工具-线程池(threadpool)
2015-11-25 19:20
381 查看
boost扩展工具-线程池(threadpool):
http://threadpool.sourceforge.net/下载threadpool,然后把threadpool里面的boost目录下的threadpool.hpp和threadpool文件夹拷贝到boost目录下.
使用threadpool需要链接boost的两个共享库:boost_thread、boost_system(如果是静态链接那就还得动态链接pthread库), 并且include <boost/threadpool.hpp>。
在使用threadpool时,编译会报错:
task_adaptors.hpp:149:28: error: ‘TIME_UTC’ was not declared in this scope。。。
这是因为
been renamed to
Boost 1.50。修改task_adaptors.hpp即可.
http://threadpool.sourceforge.net/下载threadpool,然后把threadpool里面的boost目录下的threadpool.hpp和threadpool文件夹拷贝到boost目录下.
使用threadpool需要链接boost的两个共享库:boost_thread、boost_system(如果是静态链接那就还得动态链接pthread库), 并且include <boost/threadpool.hpp>。
在使用threadpool时,编译会报错:
task_adaptors.hpp:149:28: error: ‘TIME_UTC’ was not declared in this scope。。。
这是因为
boost::TIME_UTChas
been renamed to
boost::TIME_UTC_in
Boost 1.50。修改task_adaptors.hpp即可.
相关文章推荐
- C语言模块化程序设计概念理解
- git push时提示:更新被拒绝,因为您当前分支的最新提交落后于其对应的远程分支
- 如何将一个浮点型转化为字符串型
- 053-16 Which statement most accurately describes the implementation of a SQL Access Advisor recommen
- 33.单例对象
- linux下利用elk+redis 搭建日志分析平台教程
- git学习
- git 相关错误
- Arduino通过HTTP上传Json数据,树莓派再GET回数据
- Eclipse构建Maven项目
- Spring、junit、mockito单元测试总结
- 明明的随机数
- CF-Mr. Kitayuta's Colorful Graph
- 界面设计法则
- WordPress主题制作(5)-定制WordPress登陆注册页面
- Only windows+hadoop(不需要任何其他软件)+MapReduce Sample
- ios开发——日常之iOS通知传值的使用
- id命令
- UVA 1193 区间相关(greedy)
- 第二个Sprint冲刺第三天