🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: threads memory access

#6376
From: Jonathan Benedicto
Date: Fri, 20 May 2005 22:23
18 lines
1668 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:428e5d74$1@newsgroups.borland.com...
>
> As long as the 3rd thread never deals with unlocked structures, and 
> the 1st
> and 2nd threads never access each other's structures but only their 
> own, and
> the 1st and 2nd threads never do anything with the locked structures 
> (not
> even free them until they are unlocked by the 3rd thread), then the 
> design
> you have described will work fine.

Thank you very much for validating this design. I hadn't thought of 
the possibility that they might be freed before being unlocked, but 
I've now added a protection against that.

Jonathan 
Technical Details
Message-ID: <428e637a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <428e4b3f$1@newsgroups.borland.com> <428e5d74$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f662da50ec5f6f69
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <incorrect@no.server>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <428e4b3f$1@newsgroups.borland.com> <428e5d74$1@newsgroups.borland.com>
Subject: Re: threads memory access
Date: Fri, 20 May 2005 18:23:58 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 64.231.16.168
Message-ID: <428e637a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116627834 64.231.16.168 (20 May 2005 15:23:54 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail