pthread_create传递多个参数

https://www.cnblogs.com/helloweworld/p/3509773.html 亲测有效。 一、传递一个参数。   #include <iostream> #include <pthread.h> using namespace std; void* thr_fn(void* arg) {         int i = *(int*)arg;         cout <
相关文章
相关标签/搜索