On 12/29/06, Marti Maria <[EMAIL PROTECTED]> wrote: > > And especially if that meant that > > it is now safe to share cmsHTRANSFORM between threads ? > > Yep.
Great! Our project has been waiting on this too. > conflicts. For the remaining 0,1% you may turn > on the pthread support by editing lcms.h, but in > my testing it worked fine without that. It's not so easy for users of lcms to decide whether the installed version is thread-safe. And I think lcms.pc needs to know about this too: it should add -lpthreads to the library line, and possibly -D_REENTRANT to the cflags. How about testing for threads in configure.in (with a switch to turn off threads if required) and if they are found, setting LCMS_THREADSAFE (for example). I used to use the ACX_PTHREAD macro when I had my own thread wrapper, perhaps there's something better now. I could try to make a patch if you like. Another solution would be to use a thread wrapper library like gthread, though of course I can understand reluctance to make another dependency. John ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user