🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: object create order

#120
From: vavan
Date: Thu, 11 Nov 2004 07:18
22 lines
2071 bytes
On Wed, 10 Nov 2004 20:55:32 -0600, "Phil Staite"
<no.spam@not.a.chance> wrote:

>Yep, never intended to be thread-safe.
>
>Of course, to make it thread safe you'd need some kind of lock to control
>access.  Of course, that lock would have to be created and initialized
>before anyone tried to use it...  Hmm, kind of the same problem the OP was
>looking at...

which is discussed _many_ times in comp.programming.threads :)

see for example
http://groups.google.com/groups?hl=en&lr=&frame=right&rnum=21&thl=1270562856,1270562636,1270370451,1270368296,1270066062,1269815773,1269388368,1269119233,1268850512,1268850348,1268566741,1268260155&seekm=c29b5e33.0201301230.23319507%40posting.google.com#link26

>That kind of thing is best done by the main thread *before* it kicks off any
>additional threads.

agreed

--
Vladimir Ulchenko aka vavan
Technical Details
Message-ID: <gs36p0dm9ij2bu9pcdn39i5ie6pln244kg@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!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> <j5zn1pqq9i.fsf@explicit.atdesk.com> <4192e1c3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10db1e,7fd39362bd6d0fe2
X-Google-Attributes: gid10db1e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: vavan <vavan@santel.ru>
Newsgroups: borland.public.cppbuilder.oodesign
Subject: Re: object create order
Date: Thu, 11 Nov 2004 10:18:16 +0300
Organization: TAIF-TELCOM
Message-ID: <gs36p0dm9ij2bu9pcdn39i5ie6pln244kg@4ax.com>
References: <kcdqo0t2f0vkit49u0l9goji42stukiq17@4ax.com> <418ed304$1@newsgroups.borland.com> <g2uto0p62cvgkccrnnd13dke6vf19d9m94@4ax.com> <adu3p0ha0a5ur21ssd817c6ugqegigee72@4ax.com> <cgs4p0pdn91rqd3f9gq16po2481g2dqm86@4ax.com> <r6t4p09hq6msmtm862t76ohmk6et7fg6di@4ax.com> <j5zn1pqq9i.fsf@explicit.atdesk.com> <4192e1c3$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 195.85.238.77
X-Trace: newsgroups.borland.com 1100157668 195.85.238.77 (10 Nov 2004 23:21:08 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail