会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
夜行过客
纸上得来终觉浅,绝知此事要躬行。
博客园
首页
新随笔
管理
2020年3月10日
C++: C++中的pthread线程函数
摘要: 在C++的类中,普通成员函数不能作为pthread_create的线程函数,如果要作为pthread_create中的线程函数,必须是static ! 在C语言中,我们使用pthread_create创建线程,线程函数是一个全局函数,所以在C++中,创建线程时,也应该使用一个全局函数。static定
阅读全文
posted @ 2020-03-10 10:56 夜行过客
阅读(3382)
评论(0)
推荐(0)
编辑
公告