boostthread.cpp
来自「把C语言的thread和socket封装了一层.希望能给初学者带来帮助.」· C++ 代码 · 共 11 行
CPP
11 行
#include "BoostThread.h"
int BoostThread::pthreadCreate(pthread_t *thread,pthread_attr_t *attr,void *(*start_routine)(void *), void *arg)
{
return pthread_create(thread,NULL,start_routine,NULL);
}
int BoostThread::pthreadJoin(pthread_t th,void **thread_return)
{
return pthread_join(th,NULL);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?