문제

I have a vector of handles from processes I ran using create process. I am wondering how to pass in that into WaitForMultipleObjects(v.size, "code goes here",true, infinite);

I populate the handle vector with the PROCESS_INFORMATION's handle field each time I loop through and create a process.

도움이 되었습니까?

해결책

If your compiler supports C++11, you could use v.data() to get an array of the content in the vector.

다른 팁

WaitForMultipleObjects(v.size(), &v[0], true, INFINITE);

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top