自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

九遍斋的专栏

行成于思

  • 博客(2)
  • 资源 (9)
  • 收藏
  • 关注

原创 使用muduo编译链接错误 undefined reference to `muduo::ThreadPool::run(boost::function<void ()()>&&)'

用nm查看引用的libmuduo_base.a里面,发现确实没有这个函数,连ThreadPool类都没有编译进来。不过在libmuduo_base_cpp11.a里面,nm查看是有这个ThreadPool的。将Makefile的链接库改为-lmuduo_base_cpp11,编译通过。 遇到问题要冷静思考,运用合适的工具去分析解决。

2016-08-11 10:49:06 2989

原创 C++11 牛逼新特性——Alias declaration template

C++11的一个牛逼特性,记住备忘: templatetypename T> struct A {}; templatetypename T> using APtr = boost::shared_ptrAT>>; // int main() { APtr foo; }

2016-08-10 07:56:39 2388

Using the POSIX API - Threads, real-time and IPC

In Linux, when a new process is created, it already contains a thread, used to execute the main() function Additional threads can be created using the pthread library, which is part of the C library Of course all threads inside a given process will share the same address space, the same set of open files, etc. The pthread library also provide thread synchronization primitives: mutexes and conditions This pthread library has its own header : pthread.h Applications using pthread function calls should be explicitly linked with the pthread library gcc ­o app app.c ­lpthread

2013-03-24

New features in Linux-2.6

虽然Linux早已到了3.8时代,但是2.6内核非常经典,在嵌入式行业依然被广泛应用。这部slides专为嵌入式开发人员而写。

2013-03-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除