473,325 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

IAsyncResult.AsyncWaitHandle - when is it signaled?

If I were to call an async beginxxx method that returns an IAsyncResult when
exactly would the AsyncWaitHandle be signaled? Before or after the
corresponding endxxx method completes? Immediately after?
Jun 15 '07 #1
2 3150
On Jun 15, 3:11 pm, "David" <nos...@nospam.comwrote:
If I were to call an async beginxxx method that returns an IAsyncResult when
exactly would the AsyncWaitHandle be signaled? Before or after the
corresponding endxxx method completes? Immediately after?
All of the EndXXX methods I've worked with block if the operation is
still pending. In those cases the WaitHandle is signaled prior to
completion and often time before EndXXX is even called.

Jun 16 '07 #2
OK, thanks.

"Brian Gideon" <br*********@yahoo.comwrote in message
news:11*********************@o61g2000hsh.googlegro ups.com...
On Jun 15, 3:11 pm, "David" <nos...@nospam.comwrote:
>If I were to call an async beginxxx method that returns an IAsyncResult
when
exactly would the AsyncWaitHandle be signaled? Before or after the
corresponding endxxx method completes? Immediately after?

All of the EndXXX methods I've worked with block if the operation is
still pending. In those cases the WaitHandle is signaled prior to
completion and often time before EndXXX is even called.

Jun 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David Jenkins | last post by:
I have a very small application designed so that the main thread spawns 3 additional threads. All 4 threads then wait for an event from an Oracle database (message posted on an AQ queue), and are...
1
by: mail.matty | last post by:
Hi All, I've been working on a library which does async Http operations. The library is exposed to COM as I need to access it via SQL2000. Whenever the following line of code executes it...
3
by: Ed Sutton | last post by:
Can any one please offer any theories on how ManualResetEvent.WaitOne can hang when used with a timeout? When I notice my USB/Serial devices are no longer receiving communications, I hit break...
12
by: semedao | last post by:
Hi all, someone know if I can use the IAsyncResult.IsCompleted Property of IAsyncResult that return from Socket.Beginxxx methods to determine if the Endxxx method already called perior or not ? I...
2
by: David | last post by:
I don't actually have a need to do this right now but was wondering... I also assume the answer to this is going to be no but.... thread 1 calls an async socket.beginReceive() method which...
6
by: billiejoex | last post by:
Hi there. I'm setting up test suite for a project of mine. situations, if the socket is closed on the other end or not. I noticed that I can "detect" such state if a call to socket.read() returns...
2
by: Morgan Cheng | last post by:
In asynchronous model, BeginXXX method returns a IAsnycResult-derived object. IAsyncResult.AsyncWaitHandle will be signaled when the asynchronous job is complete; and BeginXXX method has a argument...
3
by: Pinux | last post by:
Hi, I am writing a multi-threads encryption application. The idea of the code is to create a number of threads to encrypt files. I have a thread pool say the maximum threads is 10. If the number...
0
by: UL-Tomten | last post by:
Is the WaitHandle on the IAsyncResult returned from BeginProcessRequest ever used by the HTTP application? The reason I'm asking is that in the MSDN article "How to: Create an Asynchronous HTTP...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.