class Scoreget{
private:
//some variables
public:
Scoreget(){
//something here
}
void* basicgetscore(){
You need to define a non member (static) function to pass as thread function for pthread_create()
. Referencing from your object doesn't help, since this is a function pointer that is expected from this function. You can pass a pointer to your object instance using the user args void* pointer though.