-
stanisc authored
This is a followup for https://codereview.chromium.org/2086123002/. This change removes the WIN_OS specific timed wait logic from MessagePumpDefault::Run implementation and moves it to OS_WIN specific WaitableEvent implementation. This will make OS_WIN TimedWait behavior consistent with the posix implementation: 1) A sub-ms wait doesn't time out promptly (unless the timeout is exactly zero). 2) Also it doesn't time out earlier than the specified max_time. 3) Introduced WaitableEvent::TimedWaitUntil method that waits until the specified absolute deadline. BUG=623223,465948 Review-Url: https://codereview.chromium.org/2433773005 Cr-Commit-Position: refs/heads/master@{#435388}
acf68011