funkcja pthread z klasy

Powiedzmy, że mam klasę taką jak

class c { 
    // ...
    void *print(void *){ cout << "Hello"; }
}

A potem mam wektor c

vector<c> classes; pthread_t t1;
classes.push_back(c());
classes.push_back(c());

Teraz chcę utworzyć wątekc.print();

A poniżej podaję problem poniżej:pthread_create(&t1, NULL, &c[0].print, NULL);

Błąd Ouput: nie można przekonwertować „void * (tree_item ::)(unieważnić) ’Do‘ void * ()(unieważnić) ”Dla argumentu„ 3 ”do„ int pthread_create (pthread_t *, const pthread_attr_t *, void * ()(unieważnić), void *) ”

questionAnswers(8)

yourAnswerToTheQuestion