This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How EGCS with multi-threaded compliance?
- To: egcs at cygnus dot com
- Subject: Re: How EGCS with multi-threaded compliance?
- From: Nathan Myers <ncm at cygnus dot com>
- Date: Fri, 10 Apr 1998 19:04:33 -0700
- Newsgroups: cygnus.egcs
- Organization: http://www.cantrip.org/
- References: <004501bd5f56$50b61ba0$2c91b780.cygnus.egcs@pitcheri.gsfc.nasa.gov>
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