How EGCS with multi-threaded compliance?
Nathan Myers
ncm@cygnus.com
Fri Apr 10 20:10:00 GMT 1998
Dirk Broer wrote:
>
> I'm searching for a C++ compiler that is multi-thread compliance.
Aren't we all... An area most compilers haven't got right yet is
void f()
{
static A a;
}
The constructor for 'a' is supposed to run the first time you enter f().
This requires a lock (or good luck) in MT code. Does egcs (or any compiler)
generate such a lock?
Nathan Myers
ncm@cantrip.org
More information about the Gcc
mailing list