Best way for one thread to wait on another to exit

  • Thread starter Thread starter Howard Swope
  • Start date Start date
H

Howard Swope

I want to have one thread wait until another thread exits. In the full .Net
framework there is a function, Thread.Join() that does just this. I was
wondering what the best method for doing this in the CF is???

Also, why on earth would the CF not have an overload of WaitOne that would
timeout. I don't think there has been a program I have written that didn't
do this :-(
 
I'd use WaitForSingleObject( handle, timeout ). There's a declaration for
the P/Invoke in OpenNETCF.

Paul T.
 
Back
Top