> -----Original Message-----
> From: David Kantrowitz [mailto:kantrow...@diaginc.com] 
> Sent: 20. oktober 2010 17:02
> To: lcms-user@lists.sourceforge.net
> Subject: [Lcms-user] Are transforms thread safe?
> 
> Hi!
> 
> I'm trying out LCMS2 for a project. So far it's working 
> nicely but I'd like to speed up the application of a 
> transform. My question is this:
> Is it safe to create a single transform on the main thread 
> and apply it (via DoTransform) on multiple threads running 
> concurrently? I'm creating the transform with 
> CreateMultiprofileTransform.
> 
> If so, are there any settings I must use, such as #defines, 
> to make the operation thread-safe?


Hi.

This issue came up before, and the answer was that you need to pass the flag 
cmsFLAGS_NOCACHE to, say, cmsCreateMultiprofileTransform().

This may or may not affect the performance of the transform. If the one-pixel
cache is important, it will slow you down. This is also the case where the
problems will tend to show up if the flag is not set.

I have tried this and it does seem to work well.

I would like to lobby for an official flag that makes this valid in the future.
For now it could just alias to cmsFLAGS_NOCACHE.


Regards,

Esben H-R Myosotis

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to