Article View: borland.public.cppbuilder.nativeapi
Article #6396Re: Response not in que?
From: Bob Gonder
Date: Thu, 12 May 2005 19:01
Date: Thu, 12 May 2005 19:01
30 lines
2191 bytes
2191 bytes
Neil P. wrote: >In my example (code snippet) of the read, while inside the while loop, is >the processor stuck in my while loop? Yes. > or Is it doing the read, then What read? You are looping on a status check and reading around once per million loops. >collecting information coming in on the RS232 uart, then going back into my >loop? How does that work? Poorly. >If I don't make my read and write functions I/O overlapped, if I am using a >while loop for timing, will the processor be stuck in the loop or does it >have time to go look at the information coming is at the uart? As long as you are in a tight loop checking the status, you will have the same types of problems. > Or does that >happen at the time is steps in the read function? Get rid of the timing loop. Whether you use overlapped or not, use the timeouts supplied by the o/s.
Technical Details
Message-ID:
<f59781pohlbtuidsu9gse1qqiup4g53cv4@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.maxwell.syr.edu!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-mailReferences:
<427fa27e@newsgroups.borland.com> <vugv711ona1kdbekucqqkg6csqkcd4agrd@4ax.com> <427fca8b$1@newsgroups.borland.com> <ukjv71lvb2s28pvi34r21cf1loa8nsqfnv@4ax.com> <427fd7cf$1@newsgroups.borland.com> <ainv71tis6a7m0pugjr1218hchvoha332j@4ax.com> <427ff5f0$1@newsgroups.borland.com> <pha081p0llphlf254k6go823dl1k37sede@4ax.com> <4283946a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,369fa724017da622 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Response not in que? Date: Thu, 12 May 2005 12:01:03 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <f59781pohlbtuidsu9gse1qqiup4g53cv4@4ax.com> References: <427fa27e@newsgroups.borland.com> <vugv711ona1kdbekucqqkg6csqkcd4agrd@4ax.com> <427fca8b$1@newsgroups.borland.com> <ukjv71lvb2s28pvi34r21cf1loa8nsqfnv@4ax.com> <427fd7cf$1@newsgroups.borland.com> <ainv71tis6a7m0pugjr1218hchvoha332j@4ax.com> <427ff5f0$1@newsgroups.borland.com> <pha081p0llphlf254k6go823dl1k37sede@4ax.com> <4283946a$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.206.29 X-Trace: newsgroups.borland.com 1115924461 67.77.206.29 (12 May 2005 12:01:01 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.maxwell.syr.edu!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