导航

2014年2月12日

摘要: Boost的互斥量,条件变量做了很好的封装,因此比“原生的”POSIX mutex,condition variables好用。然后我们会通过分析boost相关源码看一下boost linux是如何对pthread_mutex_t和pthread_cond_t进行的封装。首先看一下condition_variable_any的具体实现,代码路径:/boost/thread/pthread/condition_variable.hpp[cpp]view plaincopyclasscondition_variable_any{pthread_mutex_tinternal_mutex;pthre 阅读全文

posted @ 2014-02-12 15:40 ghostll 阅读(751) 评论(0) 推荐(0) 编辑

我的专栏