BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Response now in que!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Neil P.
Guest





PostPosted: Wed May 18, 2005 5:15 pm    Post subject: Response now in que! Reply with quote



I would like to thank everyone who help me with (Response not in que?), I
would like to say, I tried everything that was told to me and used almost
everything. I did decide to go non-overlapped, for
this application.

Anyways, my application is now working and that was my goal!!!

I do have a question, why would you need WaitForSingleObject, if you can
specify a timeout for the read and write using the Read or Write
TotalTimeoutConstant?

Thank you,
Neil P.


Back to top
Bob Gonder
Guest





PostPosted: Wed May 18, 2005 6:25 pm    Post subject: Re: Response now in que! Reply with quote



Neil P. wrote:

Quote:
I do have a question, why would you need WaitForSingleObject, if you can
specify a timeout for the read and write using the Read or Write
TotalTimeoutConstant?

Different way of doing the same thing.
Difference is if you have other things to do while waiting for file
i/o, or whether blocking is acceptable.

In your case, you really wanted to hang around and wait for the data,
so blocking was fine. (Data was more important than time, to a point)

Other people might have better things to do than wait around for
something to eventually come in, and so use overlapped with long read
timeouts, but zero or very small WaitFor timeouts. (Time more
important than data).
Also, with very long and uncertain reads, if the application decides
to close, the thread isn't blocked and can terminate readily.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.