On 20 December 2010 10:33, Esben Høgh-Rasmussen <e...@phaseone.com> wrote:
> In my opinion, TLD (thread local data) is over engineering and not
> generally available. Why not just reserve a small buffer on the stack and
> pass it to a thread-safe version of the conversion routine?
>
> Something along these lines:
>
> cmsTransformBuf buf;
> cmsDoTransformTS(src, dst, pix_count, &buf);
>
> The single-pixel would simply be put in the buffer.

Another option would be to simply remove the cache, since it is
dangerous, and add a tiny new wrapper function which uses a stack
cache as Esben cleverly suggests. This would not break any existing
code, just make a few programs run slightly more slowly.

John

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to