会员
周边
捐助
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
YOUNG++
博客园
首页
新随笔
联系
管理
订阅
2021年7月27日
Linux C/C++互斥锁的使用
摘要: c++11中使用了std::lock_guard互斥锁(#include <thread>)。还有一种,我们看看#include <pthread.h>中使用方法。(自我理解锁的范围可随意控制) 操作函数 pthread_mutex_t lock; /* 互斥锁定义 */ pthread_mutex
阅读全文
posted @ 2021-07-27 22:46 YOUNG++
阅读(911)
评论(0)
推荐(0)
编辑
公告