AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2010.06.17 15:39 "[Tiff] libtiff 4 API/ABI stability?", by Adam Goode
2010.06.17 16:21 "Re: [Tiff] libtiff 4 API/ABI stability?", by Edward Lam
2010.06.17 16:22 "Re: [Tiff] libtiff 4 API/ABI stability?", by Edward Lam
2010.06.17 16:38 "Re: [Tiff] libtiff 4 API/ABI stability?", by Adam Goode
2010.06.17 22:06 "Re: [Tiff] libtiff 4 API/ABI stability?", by Edward Lam
2010.06.18 00:13 "Re: [Tiff] libtiff 4 API/ABI stability?", by Adam Goode
2010.06.18 13:44 "Re: [Tiff] libtiff 4 API/ABI stability?", by Edward Lam
2010.06.17 16:28 "Re: [Tiff] libtiff 4 API/ABI stability?", by Bob Friesenhahn
2010.06.17 16:34 "Re: [Tiff] libtiff 4 API/ABI stability?", by Adam Goode
2010.06.17 16:55 "Re: [Tiff] libtiff 4 API/ABI stability?", by Bob Friesenhahn
2010.06.17 17:15 "Re: [Tiff] libtiff 4 API/ABI stability?", by Adam Goode
2010.06.17 18:04 "Re: [Tiff] libtiff 4 API/ABI stability?", by Olivier Paquet
2010.06.17 18:09 "Re: [Tiff] libtiff 4 API/ABI stability?", by Adam Goode
2010.06.17 18:47 "Re: [Tiff] libtiff 4 API/ABI stability?", by Bob Friesenhahn
2010.06.17 19:35 "Re: [Tiff] libtiff 4 API/ABI stability?", by Olivier Paquet
2010.06.18 00:33 "Re: [Tiff] libtiff 4 API/ABI stability?", by Adam Goode
2010.06.18 01:45 "Re: [Tiff] libtiff 4 API/ABI stability?", by Adam Goode
2010.06.18 01:54 "Re: [Tiff] libtiff 4 API/ABI stability?", by Olivier Paquet
2010.06.18 02:00 "Re: [Tiff] libtiff 4 API/ABI stability?", by Adam Goode
2010.06.18 13:32 "Re: [Tiff] libtiff 4 API/ABI stability?", by Edward Lam
2010.06.18 13:54 "Re: [Tiff] libtiff 4 API/ABI stability?", by Olivier Paquet
2010.06.18 02:36 "Re: [Tiff] libtiff 4 API/ABI stability?", by Bob Friesenhahn
2010.06.17 20:14 "Re: [Tiff] libtiff 4 API/ABI stability?", by Tom Lane
2010.06.17 20:35 "Re: [Tiff] libtiff 4 API/ABI stability?", by Bob Friesenhahn
2010.06.18 00:31 "Re: [Tiff] libtiff 4 API/ABI stability?", by Adam Goode

2010.06.17 19:35 "Re: [Tiff] libtiff 4 API/ABI stability?", by Olivier Paquet

On Thu, Jun 17, 2010 at 2:47 PM, Bob Friesenhahn <bfriesen@simple.dallas.tx.us> wrote:

Yeah, it will work ok in 99% of cases. It won't work if one library needs to register a codec that changes the behavior of another library, for example. Not so much an issue if you're using libtiff from an application, but it is if you're writing a library that uses libtiff.

In this case you would need to have an 'application' handle which contains all application specific references, where a single "program"

But you still need to pass the application handle to every TIFFOpen() call. This might be a better solution as it is more easily extensible. If some new piece of "global" state comes up in the future, we can add a call to set it in the "application handle" instead of creating a third version of TIFFOpen().

could have multiple handles. users of libtiff in a single  Multiple application becomes more common as applications become huge and use many other libraries (some apps seem to use over 70 libraries now).

And more. Take autodesk maya:
ldd `which maya.bin` | wc -l
122

and this just the starting point as many more will be loaded dynamically as plug-ins. No one really knows how many users of libtiff are in there or where error messages will end up.

I have seen very good success from using thread specific data (TSD), which is supported under POSIX and Microsoft Windows, and is easily emulated in a non-threaded build. can be much more efficient than  TSD using shared data with locking if the algorithm can get by with

Yes, TSD is probably the only thing that really scales. The downside is that it means we have to link with libpthread on linux. I'm not sure if that kind of change can safely be made once 4.0 is released so now might be a good time, even if we don't actually use libpthread yet.

Olivier