关于 boost 多线程(一)
关于 boost 多线程之一在纯 C++ 开发中,线程的创建由 pthread_create 函数实现。成功返回0,出错返回 -1.其函数原型为:int pthread_create(pthread_t *tidp,const pthread_attr_t *attr,(void*)(*start_rtn)(void*),void *arg);调用该函数时需要传入一个函数地址作为形参,该地址即为线程
原创
2017-12-22 17:29:28 ·
1158 阅读 ·
0 评论