This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Exceptions and thread safety
- To: Anjul Srivastava <anjul dot srivastava at sanchez dot com>
- Subject: Re: Exceptions and thread safety
- From: Alexandre Oliva <aoliva at cygnus dot com>
- Date: 22 Mar 2000 19:58:02 -0300
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Organization: Cygnus Solutions, a Red Hat Company
- References: <383558CE36E2D311AC790004AC33FF676165B5@OZ>
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