Subj : Re: How to pass class-member function to pthread_create(....)? To : comp.programming.threads From : Jedrzej Dudkiewicz Date : Wed Jul 20 2005 09:26 am > > Standard says: Function prototypes must be provided for use with an ISO C > > compiler. > > That does not mean that C++ must use what is provided for ISO C > compiler, does it? If you want use POSIX threads, you must use ISO C compiler. You can use any other interface, but this way it's just "some library" based on threads. > > I assume, that if interface (function prototypes) is in C, passed data MUST > > be C-compatible. Library can be implemented in java or python, but it must > > provide C interface. > > I am sorry, but what I got in this group some facts from standards and > many assumtions to link that facts together and then conclusion that is > only right opinion and anything different is false. What if somebody > does not share your assumtion? Show me these assumptions. C interface? The fact, that, according to C++ standard, C++ links only with C++? > > > And you can know if it is safe to call extern "C++" > > > linkage from the C library as well. > > > > Maybe, but it's not required by any standard, so you can't count on it. > > What is required by a standard and which one, what I can count on? Sorry, I'm off. Follow David Schwartz's tips: read standards on your own. JD .