🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.oodesign
Article #118

Re: object create order

#118
From: Chris Uzdavinis
Date: Wed, 10 Nov 2004 22:43
19 lines
1897 bytes
Sten Larsson <stenX@Xstenl.com> writes:

> On Wed, 10 Nov 2004 11:55:16 -0800, Sten Larsson <stenX@Xstenl.com>
> wrote:
>>>beware MT problems...
>>
>>Can you please tell me what "MT" is.
>
> Multi Threading ?

Yes.  Static local variables of functions are not protected, and are
constructed the first invocation.  If two threads both call the same
function at the same time, then the single static member could be
constructed multiple times.  If that's not bad enough, at program
shutdown, it could get multiply destroyed, depending on how that gets
setup, which may (should) crash your program.

-- 
Chris (TeamB);
Technical Details
Message-ID: <j5zn1pqq9i.fsf@explicit.atdesk.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <kcdqo0t2f0vkit49u0l9goji42stukiq17@4ax.com> <418ed304$1@newsgroups.borland.com> <g2uto0p62cvgkccrnnd13dke6vf19d9m94@4ax.com> <adu3p0ha0a5ur21ssd817c6ugqegigee72@4ax.com> <cgs4p0pdn91rqd3f9gq16po2481g2dqm86@4ax.com> <r6t4p09hq6msmtm862t76ohmk6et7fg6di@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10db1e,7fd39362bd6d0fe2
X-Google-Attributes: gid10db1e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.oodesign
Subject: Re: object create order
References: <kcdqo0t2f0vkit49u0l9goji42stukiq17@4ax.com> <418ed304$1@newsgroups.borland.com>
 <g2uto0p62cvgkccrnnd13dke6vf19d9m94@4ax.com>
 <adu3p0ha0a5ur21ssd817c6ugqegigee72@4ax.com>
 <cgs4p0pdn91rqd3f9gq16po2481g2dqm86@4ax.com>
 <r6t4p09hq6msmtm862t76ohmk6et7fg6di@4ax.com>
From: Chris Uzdavinis (TeamB) <chris@uzdavinis.com>
Organization: TeamB
Date: Wed, 10 Nov 2004 17:43:21 -0500
Message-ID: <j5zn1pqq9i.fsf@explicit.atdesk.com>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)
Cancel-Lock: sha1:OPvt7nyjJO8+NVLBbLFFLqZXGMU=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 63.68.0.194
X-Trace: newsgroups.borland.com 1100126599 63.68.0.194 (10 Nov 2004 14:43:19 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail