This is the mail archive of the gcc-bugs@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]

exception handling and threads



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)



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