Best way for one thread to wait on another to exit

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 :-(
 
P

Paul G. Tobey [eMVP]

I'd use WaitForSingleObject( handle, timeout ). There's a declaration for
the P/Invoke in OpenNETCF.

Paul T.
 

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