Calling main thread from a worker thread

C

Chad Miller

I know haw to call a the main thread from a worker thread in a windows form
class, but
how does a worker thread call its main thread from a none windows form
class?

Thank You.

(e-mail address removed)
 
S

Samuel R. Neff

It'd be better if the worker object broadcasted events that the main
form listens to. That way you don't have the tight binding of "i call
you and you call me" relationship.

The event broadcasting mechanism in .net takes care of joining the
proper thread (at least that's what I've been told, I haven't actually
found any documentation confirming this).

HTH,

Sam
 

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