Is pthread_t an object that is used by value or by reference? If by value (i.e. if pthread_t maps to an int or something like that), then we can just mmalloc size(pthread_t), memcpy, and return the value on the heap. Any caller using that method can mfree or allow csound to cleanup at end in worst case. Am I off? On Wed, Jun 4, 2008 at 2:32 PM, Michael Gogins wrote: > The question is not only recompilation of Csound, which obviously is required, but also recompilation or recoding of clients of the Csound API. > > The whole purpose of this discussion, in case that isn't clear, is that with the changes I am contemplating, neither recoding nor recompiling of the CLIENTS of the Csound API will be required. This is a whole other matter. > > These clients only know about thread objects as void * addresses, and they are not expected to interchange these objects with the pthread API or any other API. > > Regards, > Mike > > -----Original Message----- >>From: Fons Adriaensen >>Sent: Jun 4, 2008 4:45 PM >>To: csound-devel@lists.sourceforge.net >>Subject: Re: [Cs-dev] An oddity >> >>On Wed, Jun 04, 2008 at 04:26:15PM -0400, Felipe Sateler wrote: >> >>> This means changing the API for this release, and tying the csound ABI to >>> pthread's. If pthread decides to change pthread_t for some reason, then >>> csound's ABI will change too. >> >>Only the *binary* interface would change. Recompilation is >>all you need in that case. It would be necessary *anyway*. >>Or do you expect any binary code using threads to still >>work if a platform's representation of pthread_t changes ? >> >>Wake up from your dreams please. >> >>Ciao, >> >>-- >>FA >> >>Laboratorio di Acustica ed Elettroacustica >>Parma, Italia >> >>Lascia la spina, cogli la rosa. >> >> >>------------------------------------------------------------------------- >>Check out the new SourceForge.net Marketplace. >>It's the best place to buy or sell services for >>just about anything Open Source. >>http://sourceforge.net/services/buy/index.php >>_______________________________________________ >>Csound-devel mailing list >>Csound-devel@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/csound-devel > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net