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: How EGCS with multi-threaded compliance?


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


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