Subj : Re: How to pass class-member function to pthread_create(....)? To : comp.programming.threads From : Vyacheslav Kononenko Date : Mon Jul 18 2005 11:15 am Chris Thomasson wrote: > >> Unfortunately extern "C" is necessary if your interested in creating > >> "correct code"... > > The problem is using extern "C" does _NOT_ make 100% correct code > > either. It could be safer to do that. But could be safer is different > > than correct/incorrect statements showed here. > > I would argue that it is "correct" to use extern "C" for the functions you > pass to a pthreads library; pthreads is a C library after all... extern "C" does not gurantee that your C++ function would be correctly callable from any C code. So I do not agree with statement that says: "static member solution is incorrect when extern "C" function is". It could be safer that's all. Regards, Vyacheslav .