🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1516

Re: Is this Indy code safe?

#1516
From: Remy Lebeau (TeamB)
Date: Fri, 12 Jan 2007 19:40
18 lines
1406 bytes
"Dennis Jones" <nospam@nospam.com> wrote in message
news:45a7ca99$1@newsgroups.borland.com...

> Is the following code (from Indy 9) safe

Asside from a missing handler to ensure UnlockList() is always called
regardless of an exception being thrown, then yes, it is generally
safe.

> is it possible for the TCPServer->Threads 'Count' to
> change between the LockList() and UnlockList() calls?

It is not possible.  The list is locked and will not allow external
changes until it is unlocked.


Gambit
Technical Details
Message-ID: <45a7e43c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45a7ca99$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3cb86166c3ef0c03
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <45a7ca99$1@newsgroups.borland.com>
Subject: Re: Is this Indy code safe?
Date: Fri, 12 Jan 2007 11:40:52 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45a7e43c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1168630844 75.83.34.171 (12 Jan 2007 11:40:44 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail