Article View: borland.public.cppbuilder.internet.socket
Article #4255Re: Servers & Backup
From: Vladimir Stefanovic
Date: Wed, 09 Mar 2005 20:50
Date: Wed, 09 Mar 2005 20:50
17 lines
1445 bytes
1445 bytes
> Keep a thread-safe counter somewhere that specifies > the number of active transfers. Keep a thread-safe global > flag specifying if a backup is being performed. When you > want to start the backup, check if any transfers are in > progress. When you want to start a transfer, check if the > backup is in progress. When you say *thread safe* counters/flag, do you mean I should use critical section locks (you have shown me once), or something else? -- Best regards, Vladimir Stefanovic
Technical Details
Message-ID:
<422f61a6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<422f5694@newsgroups.borland.com> <422f5ffb@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,1c128025d98be9a8 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.internet.socket References: <422f5694@newsgroups.borland.com> <422f5ffb@newsgroups.borland.com> Subject: Re: Servers & Backup Date: Wed, 9 Mar 2005 21:50:46 +0100 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 82.117.212.65 Message-ID: <422f61a6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110401446 82.117.212.65 (9 Mar 2005 12:50:46 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail