Why would WaitForSingleObject return WAIT_FAILED

前端 未结 4 1503
生来不讨喜
生来不讨喜 2021-01-13 17:06

MSDN says

If the function fails, the return value is WAIT_FAILED. To get extended error information, call GetLastError.

The cod

4条回答
  •  [愿得一人]
    2021-01-13 17:21

    Closing a handle while the handle is being waited on can also cause undefined behaviour.

提交回复
热议问题