🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12535

Re: Threads Threads Threads

#12535
From: Remy Lebeau (TeamB)
Date: Mon, 01 Dec 2003 23:41
21 lines
1582 bytes
"Colin Maharaj" <cbm@cablenett.net> wrote in message
news:3FCBCCB2.C4C79E81@cablenett.net...

> Is it possible that thread B is trying to access
> resources and functions on thread A while
> thread A's constructor is still running?

Maybe.  Please show your actual code.

> I then place...
> if (IsUp==false) return;
> In the member functions of the thread and
> now I get no problems in my 2.4 Ghz machine.

Which makes sense, since you introduced your own mechanism of protecting
thread A's resources from being accessed by thread B until it is actually
ready.


Gambit
Technical Details
Message-ID: <3fcbd0aa$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsgate.cistron.nl!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3FCBCCB2.C4C79E81@cablenett.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e26628fb95e98199
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-01 15:39:37 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3FCBCCB2.C4C79E81@cablenett.net>
Subject: Re: Threads Threads Threads
Date: Mon, 1 Dec 2003 15:41:34 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.149
Message-ID: <3fcbd0aa$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070321834 67.22.137.149 (1 Dec 2003 15:37:14 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsgate.cistron.nl!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail