On Wed, Jun 04, 2008 at 08:37:08AM -0400, Michael Gogins wrote: > I suppose pthread_t pthread could be static pthread_t pthread, but otherwise > please do not change this unless you can come up with a solution that will > work on Windows as well as on the other platforms. Either way it's broken. The local pthread variable doesn't exist anymore when this function returns - whatever the return value points to can be overwritten at any time. If you make it static the function is no longer re-entrant, and clearly in a multi-threading context it has to be. This is not a solution. The solution is to make whatever code that uses pthread_t not to depend on its size. 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