This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
exception handling and threads
- To: egcs-bugs at cygnus dot com
- Subject: exception handling and threads
- From: jeroen dobbelaere xe44 7682 <dobbelaj at access dot bel dot alcatel dot be>
- Date: Fri, 30 Jan 1998 16:51:33 +0100
Hello,
Is the exception handling in egcs (1.01) thread-safe ?
Lets suppose following situation :
class Error {};
void f()
{
throw Error();
}
and lets suppos two threads calling f.
in time :
thread 1 thread 2
call f
throw
call f
throw
...
catch
catch
-> will this work, or will the throwing of the second exception
clobber the first ?
Greetings,
-- _______
Jeroen Dobbelaere A L\C A T/E L ALCATEL TELECOM
Software Design Engineer \ / Access Systems Division (XE40)
Tel:(32 3)240.76.82 Hi-Speed\ /Solutions F. Wellesplein 1
Fax: (32 3)240.98.66 V B-2018 Antwerp (Belgium)