Subj : Re: How to pass class-member function to pthread_create(....)? To : comp.programming.threads From : Ian Date : Tue Jul 19 2005 06:05 pm Vyacheslav Kononenko wrote: > > David Schwartz wrote: > >>"Vyacheslav Kononenko" wrote in message >>news:1121719814.285338.314970@f14g2000cwb.googlegroups.com... >> >> >>>Which standard provides this guarantee? >> >> The C++ standard provides the guarantee that extern "C" gives C linkage. >>The pthreads standard gives the guarantee that pthread_create takes >>functions with C linkage. > > > I am sorry, but I would like to see what POSIX says about C linkage in > pthread_create, not your comments on that. Can you make a quote? > > Oh come on, this is purely a language issue between C and C++, nothing to do with POSIX. pthread_create is a C language interface function, so you pass it another C language function, not a C++ or Java or anything else. That's exactly what extern "C" does in C++, it declares that a function is vanilla C. Try passing a static member with a pedantic C++ compiler. Ian .