Frage

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.

War es hilfreich?

Lösung

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

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top