Sleeping thread and callback delegate

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
Back
Top