🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sleep() doesn't work as I'd expect

#9422
From: Chris Phillips
Date: Mon, 12 Jul 2004 11:24
21 lines
2024 bytes
Thanks for the useful information, and I take your point about locking out
the data - I will have a go, although I've never used critical sections or
mutexes before.


> You might just be getting lucky. Or unlucky, depending on your point of
> view, since corrupt data isn't always obvious.

We are sending data packets with checksums which would fail if the data was
being corrupted, so it looks like we are getting lucky.

> With a circular buffer, if the last thing you're writing is where in the
> buffer the latest value is, then that could be close enough to atomic
> that the failure rate is almost zero. Failure rates close to zero are a
> real b*gg*r to debug, since you can almost never find out where they
> happen.

True true.

Cheers
Chris
Technical Details
Message-ID: <40f274d4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40eea7bc@newsgroups.borland.com> <40eeb624$1@newsgroups.borland.com> <40f24e6d@newsgroups.borland.com> <40f2522a$1@newsgroups.borland.com> <40f252c7@newsgroups.borland.com> <36l4f09t2v3s9mb9gf7g36pu0k7aojgpke@4ax.com> <40f25cf8$1@newsgroups.borland.com> <lrn4f0hhholsg4362ujbhp26kc6q1bb45r@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f4373c97b27dc766
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Chris Phillips" <chris.phillips@corusgroup.com>
From: "Chris Phillips" <chris.phillips@corusgroup.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40eea7bc@newsgroups.borland.com> <40eeb624$1@newsgroups.borland.com> <40f24e6d@newsgroups.borland.com> <40f2522a$1@newsgroups.borland.com> <40f252c7@newsgroups.borland.com> <36l4f09t2v3s9mb9gf7g36pu0k7aojgpke@4ax.com> <40f25cf8$1@newsgroups.borland.com> <lrn4f0hhholsg4362ujbhp26kc6q1bb45r@4ax.com>
Subject: Re: Sleep() doesn't work as I'd expect
Date: Mon, 12 Jul 2004 12:24:04 +0100
Lines: 23
Organization: Corus
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4922.1500
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4939.300
NNTP-Posting-Host: 145.8.171.20
Message-ID: <40f274d4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1089631444 145.8.171.20 (12 Jul 2004 04:24:04 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail