Sleeping thread and callback delegate

G

Guest

I have a thread that has a delegate function which will be called when
another process exits. This thread went to sleep, the process exits and is
supposed to call the delegate, but it did not happen. When the thread wake
up, the function is not called either.

The question is, will a thread ignore all the callback when it is sleeping?
 
J

Jon Skeet [C# MVP]

COMfused said:
I have a thread that has a delegate function which will be called when
another process exits. This thread went to sleep, the process exits and is
supposed to call the delegate, but it did not happen. When the thread wake
up, the function is not called either.

The question is, will a thread ignore all the callback when it is sleeping?

How are you trying to make the callback in the thread? Could you post a
short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top