Exceptions and thread safety
Alexandre Oliva
aoliva@cygnus.com
Wed Mar 22 14:58:00 GMT 2000
On Mar 22, 2000, Anjul Srivastava <anjul.srivastava@sanchez.com> wrote:
> I am told that exception handling in gcc is not thread safe.
It is, as long as GCC is configured/built with --enable-threads, on
targets that support it. Search for `enable_threads' in
gcc/configure.in for the complete list of all platforms in which GCC
supports thread-safe exception handling.
> I am not sure what this precisely means, but I would imagine that if
> you have two threads and both enter exception handling code, then
> something nasty will happen.
I think that's a reasonable definition.
--
Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
More information about the Gcc
mailing list