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]

Re: threads in C++


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 
>>thread. 
>
>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.

But this is nothing to do with g++ specifically, so if "Rich" has any more
questions with respect to this, he should ask them in comp.lang.c++ for a
more appropriate response.

Jifl


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