Guys,
I want to call a pointer2functio n method in pthread_create. .. I do not know how to do that.
here is the code...
Would you please help me? I have no idea about the syntax I should follow in where I've shown with ????? !
I want to call a pointer2functio n method in pthread_create. .. I do not know how to do that.
here is the code...
Code:
.....
void * EventInterface::receiveEvent(int x, void (*ptToFunc)(char *, int))
.....
EventInterface::EventInterface(void (*ptToFunc)(char *, int)){
int x;
pthread_create( &receiveThread, NULL, EventInterface::receiveEvent, ???????)
....
}
Comment