Hi all,
I'm using WaitForMultipleObjects, I give an array of handles and give it
FALSE in bWaitAll param. What I want to do is, I spawn few threads upto N,
than I wait for any of them to end, when any one or more of them ends, I
want to spawn as many threads as were ended. So Its going to be a while
loop, inside that is going to be a WaitForMultipleObjects with array of
thread handles. So now my question is that when WaitForMultipleObjects
returns, how do I know which handle was the one that got signaled and how do
I fit in the handle(s) so that another WaitForMultipleObjects can be
performed on the array.
Using visual c++ 2k5 on windows xp sp2 (all native c++ code);
Regards,
...ab