I have a question concerning threading an Classes.
First I will describe you the present state of my Program.
My Main Prog is a C++ Class, which controlls different subclasses. I have a
private memberfunction called handle_client. Threading in this class fails,
what I try is this:
res = pthread_create(&handle_thread, NULL, handle_client,(void * )
void * handle_client(void * arg)
what I get is this:Quote:}
no matches converting function `handle_client' to type
`void *(*) (void *)'
candidates are: void *cMain::handle_client (void *)
If I try the same with a global function handle_client (e.g. not a class
member) this works fine.
IMHO this looks to me like I can't thread within a class with an private
class function. What I would like to know, is why is this like it is? Can
somebody explain this to me or give me a hint or link where I can get Infos