void * repairFileThread(void *arg);
为什么这样:
pthread_t tid;
pthread_create(&tid,NULL,repairFileThread,(void*)NULL);
编译的时候老是:
argument of type 'void* (A::)(void*)' does not match 'void* (*)(void*)'
如果我把pthread_create(&tid,NULL,repairFileThread,(void*)NULL);
改成pthread_create(&tid,NULL,&repairFileThread,(void*)NULL);
就变成报错说不能把函数变成地址之类的。
求大神解释。菜鸟啥也不懂。
偶然的你
泛舟湖上清波郎朗
相关分类