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 <
相關文章
相關標籤/搜索