Hi,
I am trying to accessing a function from thread created from a class member function.
but i am getting error does not come under scope .
please help to slove the problem.
below is the scenatrio..
typedef void (*Fptr)(type *ptr);
class test{
public :
Fptr fun;
void init(Fptr fun1);
void start(
};
void test :: init(Fptr fun1)
{
fun = fun1;
start();
}
void test :: start(){
pthread_create(...,threadfunc);
}
void static threadfunc(void *)
{
fun(¶m); // getting error here
}