This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: FYI on private static object construction
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Thu, 8 Aug 2002 11:33:38 -0400
- Subject: Re: FYI on private static object construction
- References: <3D527A3C.40704@hekimian.com> <20020808152748.GA8388@redhat.com>
- Reply-to: cygwin-developers at cygwin dot com
On Thu, Aug 08, 2002 at 11:27:48AM -0400, Christopher Faylor wrote:
>On Thu, Aug 08, 2002 at 10:03:40AM -0400, Joe Buehler wrote:
>>It appears from discussion on the gcc list that private static
>>objects in C++ functions are constructed when they are encountered
>>in program flow. E.g.:
>>
>>So I would recommend that in Cygwin such objects be moved out of
>>functions to global scope, to avoid threading issues.
>
>What functions are you talking about? Private static functions are
>unsafe in a threaded application by default.
Sorry. Make that "private static variables".
cgf