类中的p线程函数。
class c { // ... void *print(void *){ cout << "Hello"; }}
vector<c> classes; pthread_t t1;classes.push_back(c());classes.push_back(c());
c.print();
pthread_create(&t1, NULL, &c[0].print, NULL);
错误输出:无法转换‘void*(tree_tem: )(无效)“to”无效*( )(无效)‘for参数’3‘to’int pline_create(p线程_t*,const p线程_attr_t*,void*( )(无效),无效*‘
临摹微笑
至尊宝的传说
12345678_0001
相关分类