AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.09.22 14:20 "libjpeg", by Philip Watkinson
2006.09.22 14:31 "Re: libjpeg", by Bob Friesenhahn
2006.09.22 15:22 "Re: libjpeg", by Joris Van Damme
2006.09.22 16:31 "Re: libjpeg", by Bob Friesenhahn
2006.09.22 16:49 "Re: libjpeg", by Philip Watkinson
2006.09.22 17:09 "Re: libjpeg", by Bob Friesenhahn
2006.09.22 17:25 "Re: libjpeg", by Joris Van Damme
2006.09.23 00:51 "Re: libjpeg", by Graeme Gill
2006.09.23 01:45 "Re: libjpeg", by Bob Friesenhahn
2006.09.22 15:20 "Re: libjpeg", by Joris Van Damme
2006.09.22 16:42 "Re: libjpeg", by Bob Friesenhahn
2006.09.22 17:31 "Re: libjpeg", by Joris Van Damme
2006.09.22 18:09 "Re: libjpeg", by Toby Thain
2006.09.22 18:16 "Re: libjpeg", by Bob Friesenhahn
2006.09.22 19:21 "Re: libjpeg", by Joris Van Damme
2006.09.22 18:29 "Re: libjpeg", by Bob Friesenhahn
2006.09.22 19:18 "Re: libjpeg", by Joris Van Damme
2006.09.22 20:09 "Re: libjpeg", by Bob Friesenhahn
2006.09.22 20:21 "Re: libjpeg", by Joris Van Damme

2006.09.22 18:16 "Re: libjpeg", by Bob Friesenhahn

On Fri, 22 Sep 2006, Joris wrote:
>
> Here, my comment on your other mail, that longjmp is not a part of
> LibJpeg but at most one of the options at the disposal of caller
> implementation, does not work, as longjump *is* a part of tif_jpeg and
> tif_ojpeg.
>
> So I'm left with two questions
> 1) Is the longjmp system really unsafe? I mean nowadays, on most
> systems, as opposed to being unsafe on one or two systems a decade ago.
> 2) If this really is an issue, are exceptions a good alternative? Or do
> Linux guys not have exceptions? Are exceptions portable?

As I mentioned, it is system dependent.  The system I use daily 
documents these interfaces to be not thread safe.  Others do the same, 
or don't document thread safety issues at all.

Exceptions require using C++ (to throw and catch the exception) and 
compiling the library (or at least linking it) using a C++ compiler. 
It used to be that some C++ exception implementations were not thread 
safe but current ones seem to be thread safe.  C++ exceptions are 
pretty portable on modern systems using modern compilers since they 
are part of the C++ standard.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/