From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: David Lucas Cc: Nathan Myers , egcs@cygnus.com Subject: Re: How EGCS with multi-threaded compliance? Date: Tue, 14 Apr 1998 15:55:00 -0000 Message-id: References: <199804140327.UAA18022@pern.cygnus.com.> <35336112.59CF6444@checkfree.com> X-SW-Source: 1998-04/msg00547.html David Lucas writes: >> On any Real System, the mutex object is correctly initialized >> by the runtime loader before any static constructors are run. >> That is, the zero value is a valid, unlocked mutex. > But if the function using the static object (mutex) is being called from > static space, and not after main starts (which at that point all statics > are guarenteed initialized), then a chicken and egg condition could > occur. =-) Nope, because zero-initialization takes place before any dynamic initialization. -- Alexandre Oliva mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org http://www.dcc.unicamp.br/~oliva Universidade Estadual de Campinas, SP, Brasil