pthread_join(): any way to limit how long it waits for?



When a thread exits normally, I want to wait for it to exit, and
perhaps pick up its status, with pthread_join().

Will there be a race condition if the thread hangs before exiting: will
pthread_join() wait forever? Is there any sensible way to limit the
time that pthread_join() waits for?

--
Simon Elliott http://www.ctsn.co.uk
.



Relevant Pages