>The problem seemed to be caused by the implementation of pthread in >OSX. It looks like OSX does not have PTHREAD_CANCEL_ASYNCHRONOUS cancel >type, although pthread_setcanceltype() does not result in an error. As a >workaround, I inserted calls to pthread_testcancel() here and there, and >now the cppunit test passes, and linuxsampler looks behaving better.
Thread support has always been a source of problems on OSX but was improved release after release. Now that 10.5 Leopard is supposed to be Unix compliant, I guess it should now behave correctly. It would be interesting to see what happens on 10.5 and if it works correctly, keep the "pthread_testcancel()" fix on pre-Leopard system only. Stephane ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Linuxsampler-devel mailing list Linuxsampler-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel