A a;pthread_create(&tid,NULL,A::repairFileThread,a);...void * A::repairFileThread(void *arg){ A* a = (A*)arg; a->xxx...}
#include <pthread.h> void *pthread_fun(void *arg) { while (1) { sleep(1); printf("pthread runningn"); } return((void *)0); } int main() { pthread_t tid; pthread_create(&tid, NULL, pthread_fun, NULL); // pthread_create(&tid, NULL, &pthread_fun, NULL); while (1) { s...