This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Exceptions and thread safety


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]