muduo for v210
目标:将muduo移植到v210上面
内核版本:2.6.35.7
1. 修改最上层的CMakeLists.txt
1) 在CXX_FLAGS里,加上-DVALGRIND,这样SocketsOps.cc就不会报错了。
2) 在CXX_FLAGS里,修改-march=native为-march=armv4
3) set(CMAKE_FIND_ROOT_PATH "交叉工具链目录")
4) 修改set(CMAKE_CXX_COMPILER "g++")为set(CMAKE_CXX_COMPILER "交叉工具链g++的全路径和名字")
2. 修改muduo\base\tests\CMakeLists.txt文件
去掉target_link_libraries(atomic_unittest muduo_base)这行的注释
3. 按照armlinux.diff文件修改Atomic.h文件。
4. 将boost库放到交叉工具链的include文件目录下
muduo for v210相关推荐
- muduo 与 boost asio 吞吐量对比
muduo (http://code.google.com/p/muduo) 是一个基于 Reactor 模式的 C++ 网络库,我在编写它的时候并没有以高并发高吞吐为主要目标,但出乎我的意料,pin ...
- muduo之Logger
Logger用来记录和分析日志. Logging.h // Use of this source code is governed by a BSD-style license // that can ...
- muduo之Atomic
Atomic是muduo原子操作的实现类. Atomic.h // Use of this source code is governed by a BSD-style license // that ...
- muduo之Singleton
muduo中的单例模式 Singleton.h // Use of this source code is governed by a BSD-style license // that can be ...
- muduo之CountDownLatch.cc
CountDownLatch用线程同步的. CountDownLatch.h // Use of this source code is governed by a BSD-style license ...
- muduo之ThreadPool
muduo中的线程池. ThreadPool.h // Use of this source code is governed by a BSD-style license // that can b ...
- muduo之Thread
muduo也对线程进行了封装,下面看一下实现. Thread.h // Use of this source code is governed by a BSD-style license // th ...
- muduo之ThreadLocal
ThreadLocal用来存储线程私有数据的类. // Use of this source code is governed by a BSD-style license // that can b ...
- muduo之mutex和condition
线程同步所需的mutex和condition,记录一下. Mutex.h // Use of this source code is governed by a BSD-style license / ...
最新文章
- Linux下给挂载U盘或者SD卡
- 青龙面板-傻妞sillyGirl xdd机器人频繁掉线解决方法
- delphi 中如果不进行 closehandle 会怎么样_心理学:当你迷茫了,请坚持做三件事,你的未来会越来越好...
- python的[:-1]和[::-1]用法及结果实例(取反、删除末尾字符串)
- JVM夺命连环10问
- js数组查找最接近_如何从javascript中的对象数组中获取最接近的先前id
- SQL Server游标
- FlashCache初探(一)
- 【leetcode 简单】 第六十七题 回文链表
- 五、RabbitMQ管理与高可用集群
- 全选、取消全选、单选
- 网站时间日期代码html,显示网站运行时间及当前时间的代码
- windows android装应用,以IT之家为例,Win10 Mobile安装安卓APK应用体验如何?
- node2vec python_图上的机器学习系列-聊聊Node2vec
- 软件测试 | 试用期总结万能模板
- java gui界面设计,2022最新
- android 点击按钮打开浏览器网页
- ubuntu安装中文输入法fcitx
- jzoj 1594: 【USACO】The Chivalrous Cow(骑士牛)( 待加入)
- pap认证失败_pap chap认证配置