On Wed, Jun 04, 2008 at 12:01:34PM -0400, Michael Gogins wrote: > I understand what you are saying, but in this context it is better > to return the address of a static variable than to change the whole > API signature. Which means that 'sometimes' it just won't work. > pthread_t can be type cast to void * on all platforms but Windows. > All the other Csound threading API calls use void * for various > pthread handles. The only pthread handle that is not still a pointer > on Windows is pthread_t. The only problem caused by pthread_t not > being a pointer is in this one single function; in all other cases > the pointer contains an address to the original pthread_t object > created on the heap. What I don't grok is why it should *ever* be necessary to cast a pthread_t to anything else. Just use pthread_t wherever it occurs... If thread IDs are visible in the orchestra or score language (don't know if this is the case), then they should be abstracted. In that case keep an array of pthread_t and let the user see only the index. 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