Hi,

You can either use cmsFLAGS_NOCACHE or uncomment CMS_DONT_USE_PTHREADS
in lcms2.h

You can use the 1-pixel cache on multiple threads if wish so, but
then you need some locking for the cache. Commenting out
CMS_DONT_USE_PTHREADS does the trick.

Regards
Marti


Quoting David Kantrowitz <kantrow...@diaginc.com>:

> 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?
>
> If that cannot be done, and I have to have separate transforms for
> each thread, what about the creation of the transforms? Can I do that
> concurrently on separate threads, or is CreateMultiprofileTransform
> also not thread-safe? If it is thread-safe, is there a performance
> gain from doing so, or am I better off creating them sequentially on
> one thread?
>
> Finally, if there is the ability to create the transforms
> concurrently, do they _have_ to be created on the threads that use
> them? And is there an advantage to setting a core affinity for each
> one, or does that not matter?
>
> Thanks in advance.
>
> ------------------------------------------------------------------------------
> 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
>



------------------------------------------------------------------------------
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