Subj : Re: How to pass class-member function to pthread_create(....)? To : comp.programming.threads From : Vyacheslav Kononenko Date : Mon Jul 18 2005 02:50 pm David Schwartz wrote: > "David Hopwood" wrote in message > news:feUCe.4829$yP3.3129@fe1.news.blueyonder.co.uk... > > > David Schwartz wrote: > > >> Huh? The purpose of extern "C" is specifically does ensure that your > >> C++ compiler generated code is compatible with C code. You can know that > >> you have this compatability by passing '-pthread' to your C++ compiler, > >> which is guaranteed to provide a compatible (with that compiler) pthreads > >> implementations. > > > Unfortunately not, even for a certain compiler where -pthread is sometimes > > the right option: > > > > > Nobody ever said there couldn't be bugs. That some particular platform > has some particular bug that causes it to violate some particular guarantee > in some particular standard doesn't change the fact that the standard > provides the guarantee. > > The issue is whether extern C is guaranteed to work and whether it is > guaranteed to work without it. My response is based upon what the standards > say. No implementation details (or bugs) can change what the standards say. > > DS Which standard provides this guarantee? Espeacially about pthread option. Can you provide such statements from the standard please? Regards, Vyacheslav .