pthread_create中传入的第三个参数出现问题
class Aaaa{
private:
void* xxx(void* ccc);
}
void* Aaaa::xxx(void* ccc){}
pthread_create(&bbb,NULL , xxx , &ccc ){}
然后提示error: invalid use of non-static member function
然后改成 friend void* xxx(void* ccc){} 编译能通过但是运行异常