This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
threads in C++
- To: gcc at gcc dot gnu dot org
- Subject: threads in C++
- From: "Bogus User" <bogus_user at hotmail dot com>
- Date: Sat, 13 Nov 1999 15:01:31 PST
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