AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2000.03.16 13:20 "-D_REENTRANT for libtiff and jpeg?", by Ivo
2000.03.16 22:11 "Re: -D_REENTRANT for libtiff and jpeg?", by Tom Lane
2000.03.17 01:45 "Re: -D_REENTRANT for libtiff and jpeg?", by Phillip Crews

2000.03.17 01:45 "Re: -D_REENTRANT for libtiff and jpeg?", by Phillip Crews

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