This is the mail archive of the
mailing list for the GCC project.
Re: threads in C++
Jonathan Larmour wrote:
> In article <382f1edb.37731544@busybee> you write:
> >On Sat, 13 Nov 1999 15:01:31 PST, you wrote:
> >>I would like to use a C++ class member function as the starting point for a
> >You cannot. The starting function must be
> >extern "C" void* your_function_name_here (void*);
> Not necessarily. You could use a static member function. But if you need
> to get at object data, you'll have to get that passed in explicitly.
POSIX doesn't say you can use a "static member function", ergo you can not. If
the trick works for g++, it doesn't mean it will work for any other compiler.