mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 12:09:31 +00:00
Refactor the Windows PlatformEvent wait and wait_timeout functions to use an internal wrapper function that correctly handles waiting forever by passing the INFINITE value to WaitForSingleObject. Previously, the wait function used a Duration value of i64::MAX seconds, which becomes 0xfffffc18 when converted to milliseconds and truncated to a DWORD. This does not correspond to the INFINITE value (-1, 0xffffffff) that the Win32 Wait* functions expect, so theoretically a wait() call could have returned without the event being signaled. BUG=b:231344063 TEST=tools/presubmit --all Change-Id: If68c4b2518926c12e8caf6746ef4b0bb152be00d Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3966485 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Noah Gold <nkgold@google.com> |
||
---|---|---|
.. | ||
base_event_token_derive | ||
src | ||
tests | ||
.build_test_serial | ||
Cargo.toml |