Sorry for posting to this list ... should have been to programmers
Afraid I was distracted+half asleep and sent to help by mistake
Please ignore.
> Hi all,
>
> Is it possible to create a thread to execute the member function of a
class?
>
> pthread_create(&tid, NULL, A.x, (void*) arg);
>
> on compilation results in the warning:
>
> warning: converting from 'void*(A::*)(void*)' to 'void*(*)(void*)'
>
> Although the program runs and thread is created, how to get rid of this
> warning?
>
> Summing up, is it possible to type cast a pointer to a member function of
a
> class to a pointer to a global function?
>
> -Gaurav.
>
>
>
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr