I have an std::vector
of handle objects. I have to wait on these handle objects for using in the WaitForMultipleObjects
function. Since it's a vector, I am getting an error while using it in WaitForMultipleObjects
:
std::vector<HANDLE> events;
// ...
WaitForMultipleObjects(events.size(), events, true, INFINITE);
Is there any way to do this?
&events[0]
instead ofevents
? – Eitan T