| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2006.09.22 16:49 "Re: libjpeg", by Philip WatkinsonBob, > The problem is with the dependence on setjmp/longjmp for error > recovery. These APIs were never designed with multi-thread in mind > and are not thread safe on many (most?) platforms. Unless > specifically documented to be thread safe, one must assume not thread > safe for these APIs. Other than this, I think that libjpeg is pretty > thread safe. Libpng has the same problem as libjpeg. I just did some searching on the Internet and found the following from March 2000: > libjpeg is thread-safe as long as (a) you don't have multiple threads > operating concurrently on the same jpeg object, and (b) your underlying > C library (particularly malloc/free) is thread-safe. You can have > multiple jpeg objects being manipulated concurrently by different > threads. > > regards, tom lane > organizer, Independent JPEG Group Philip |
|||||||