This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

threads in C++


Hi,

I would like to use a C++ class member function as the starting point for a 
thread.  When I try to do
MyClass *object;
pthread_create(&id,NULL,object->member,NULL);
I get syntax errors about converting from (MyClass::*) to void*.  Is there a 
clean way to do this with g++?

Thanks,
Rich

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]