How do you wait on a thread to finish without using Join?

  • Thread starter Thread starter Jim H
  • Start date Start date
J

Jim H

I need to make sure a worker thread has completed before I can let my app
close. In System.Threading.Thread there is Join(). That isn't supported by
the cf. How do I know when it's safe to close my app? Is there some kind
of wait I can perform on the thread object?

Thanks,
jim
 
Set a flag (or an event ) before exiting the thread and wait on it in the
main thread before exiting the app
 
Is the OpenNETCF code supported on the desktop? Can I use dlls with
OpenNETCF code in desktop apps?

I checked looked around on the site but didn't see anything one way or the
other.

Jim
 
That depends, of course, on whether you are using classes that P/Invoke to
WinCE-only APIs...

Paul T.
 
Back
Top