2011.05.05 16:44 "[Tiff] Is LibTiff 3.9.5 Thread Safe ?", by Katerina Sedivy

2011.05.05 17:42 "Re: [Tiff] Is LibTiff 3.9.5 Thread Safe ?", by Frank Warmerdam

On 11-05-05 12:44 PM, Katerina Sedivy wrote:

 So I have my LibTiff.dll 3.9.5 compiled and loaded in a multithread
environement.

Katerina,

It is definately not safe to access a given TIFF object from multiple threads at the same time. In particular there is only one file handle per thread which case "position" state and having two reads operating at once could be problematic. Also, imagine the chaos if one thread is reading the next directory into a partially initialized directory object while another thread is randomly pulling fields.

So, generally not safe.

That said, it is hopefully safe for different threads to operate on distinct TIFF objects at the same time.

Best regards,
--

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent