when a thread finishes, it fires any event?

  • Thread starter Thread starter Wrathchild
  • Start date Start date
W

Wrathchild

when a thread finishes, it fires any event? How to get this event?

thanks in advance.
 
Hi,

Wrathchild said:
when a thread finishes, it fires any event?

No it doesn't.
How to get this event?

Have the code executing on the thread execute a callback when execution
finishes (event). Or you could use an .NET Event class (eg ManualResetEvent)
and set it to signaled when the thread finishes.

HTH
 
IIRC, you can catch an abort event around any blocking operation (i.e. wait,
lock, etc) But no event when you just return from your method unless you
signal one yourself. You could use a .net event object for this and have
your control thread wait on this (or other) events.
 
when a thread finishes, it fires any event? How to get this event?

You could manually fire an event at the exit of your thread method.
 

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

Back
Top