Message-ID: 4.1.20000316204143.00b46280@mail.cerious.com
To: Tom Lane <tgl@sss.pgh.pa.us>, "Ivo" <ivo.penzar@infolink-software.com>
Subject: Re: -D_REENTRANT for libtiff and jpeg?
From: Phillip Crews <pcrews@cerious.com>
Date: Thu, 16 Mar 2000 20:45:04 -0500
Cc: tiff@olympiakos.com
In-Reply-To: <12921.953244709@sss.pgh.pa.us>
References: <003301bf8f4a$62f860e0$5101a8c0@STORMTROOPER><38CFCC1B.B75FE060@med-web.com><38CFD836.2B9@srz-berlin.de><003301bf8f4a$62f860e0$5101a8c0@STORMTROOPER>
Sender: owner-tiff@olympiakos.com


At 05:11 PM 3/16/00 , Tom Lane wrote:
>ISTR that libtiff used to have static variables, but that was years ago;
>perhaps it's been cleaned up?

I *believe* the only remainders are the error handling routine addresses. I
took the easy way out and declared them _declspec(thread) in VC++ to make
the library thread-safe on Win32. I have not encountered any problems with
multiple threads handling TIFF files, even two threads handling the same
file (as long as it's opened separately by each thread -- you can't share
the TIFF* between threads).

Kind regards,
Phillip Crews
Cerious Software, Inc.
http://www.thumbsplus.com


