我正在使用WaitForMultipleObject
带有 waitForAll 参数 = true 的函数。这里使用一个 std::vector
句柄对象来等待。如果此函数超时,那么我如何识别等待哪个句柄超时?
if(WAIT_OBJECT != WaitForMultipleObject(vector.size(), vector.data(), true, 16000))
{
//get the event that causes the wait to time out(assume that only one object is timed out.others are successfully set.)
}