Re: Blocking on multiple threads with timeout

2005-03-01 Thread Peter Schuller
I have a few threads that might need as long as a minute or more to complete and terminate. If they exceed an arbitrary time, they can be canceled. In Win32, there is a 'wait on multiple objects' call. I'm not sure if it blocks or spins, but it *does* take a timeout argument. How about

Re: Blocking on multiple threads with timeout

2005-02-28 Thread Jonathon McKitrick
I'd like to start the init threads, put the id's in an array, block until they are all done, then continue. Each thread should have its own timeout handling internally. It seems to me that you are complicating the issue for no good reason. Why are you using threads at all? 1. We want to

Blocking on multiple threads with timeout

2005-02-27 Thread Jonathon McKitrick
I have a few threads that might need as long as a minute or more to complete and terminate. If they exceed an arbitrary time, they can be canceled. In Win32, there is a 'wait on multiple objects' call. I'm not sure if it blocks or spins, but it *does* take a timeout argument. Is there a