YI


  • 首页

  • 归档

  • 标签

  • 搜索

C++-利用Pthread实现多线程

发表于 2015-02-19 | 分类于 C++ | |

Pthread多线程举例。

#include <pthread.h>

void* newThreadFunction(void* arg){
    // Do things..
}


pthread_t newThread;
int ret = pthread_create(&newThread, NULL, newThreadFunction, NULL);
if(0 != ret)
    cout << "pthread_create error:error_code=" << ret << endl;
# Multithread # C++
iOS-捕获异常
iOS-Crash捕获以及生成日志上传
YI

YI

347 日志
23 分类
41 标签
GitHub 知乎
© 2023 YI
由 Hexo 强力驱动
主题 - NexT.Mist