Threading question

  • Thread starter Thread starter Trust Me; I'm from the government
  • Start date Start date
T

Trust Me; I'm from the government

Let's say I have an event handler that spawns another thread
In that original event handler, is there a way to check, and do something
ONLY after the thread is complete?
 
Trust Me; I'm from the government said:
Let's say I have an event handler that spawns another thread
In that original event handler, is there a way to check, and do something
ONLY after the thread is complete?

Give the thread a callback delegate to execute when it's finished. If
you want that marshalled to a particular thread, you'll need to use
something akin to Control.Invoke.
 
I'm brand new to threads -
could you get me to a very simple tutorial or code sample that shows how to
do this and explains it very simply?
 
Back
Top