數(shù)組轉(zhuǎn)指針
pthread_t threads[maxThread];
threadArry = (int*)threads;
指針使用數(shù)組中的值
for (int i = 0; i < maxThread; i++) {
pthread_exit(&(threadArry[i]));
}
數(shù)組轉(zhuǎn)指針
pthread_t threads[maxThread];
threadArry = (int*)threads;
指針使用數(shù)組中的值
for (int i = 0; i < maxThread; i++) {
pthread_exit(&(threadArry[i]));
}