Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Issue 999753005: Make sure that WaitableEvent::TimedWait works fine with large timeouts. (Closed)

Created:
5 years, 9 months ago by rvargas (doing something else)
Modified:
5 years, 9 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure that WaitableEvent::TimedWait works fine with large timeouts. TimedWait(TimeDelta::Max()) should do the same as Wait() (although should not be used, given that there is a dedicated method to do that). More generally, TimedWait should accept random, unreasonable large timeouts. BUG=465948 TESTS=base_unittests Committed: https://crrev.com/ac3c7563ee4a116ec66cbec8679afc9ec1a61da4 Cr-Commit-Position: refs/heads/master@{#322469}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -32 lines) Patch
M base/synchronization/waitable_event.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/synchronization/waitable_event_posix.cc View 1 3 chunks +4 lines, -9 lines 0 comments Download
M base/synchronization/waitable_event_unittest.cc View 1 3 chunks +31 lines, -17 lines 0 comments Download
M base/synchronization/waitable_event_win.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
rvargas (doing something else)
5 years, 9 months ago (2015-03-24 19:21:21 UTC) #3
Lei Zhang
https://codereview.chromium.org/999753005/diff/20001/base/synchronization/waitable_event_posix.cc File base/synchronization/waitable_event_posix.cc (right): https://codereview.chromium.org/999753005/diff/20001/base/synchronization/waitable_event_posix.cc#newcode159 base/synchronization/waitable_event_posix.cc:159: DCHECK(max_time >= TimeDelta()); Can we use DCHECK_GE() in both ...
5 years, 9 months ago (2015-03-25 01:36:27 UTC) #4
rvargas (doing something else)
Thanks! https://codereview.chromium.org/999753005/diff/20001/base/synchronization/waitable_event_posix.cc File base/synchronization/waitable_event_posix.cc (right): https://codereview.chromium.org/999753005/diff/20001/base/synchronization/waitable_event_posix.cc#newcode159 base/synchronization/waitable_event_posix.cc:159: DCHECK(max_time >= TimeDelta()); On 2015/03/25 01:36:27, Lei Zhang ...
5 years, 9 months ago (2015-03-26 19:37:29 UTC) #5
Lei Zhang
lgtm
5 years, 9 months ago (2015-03-26 20:54:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/999753005/40001
5 years, 9 months ago (2015-03-26 20:58:16 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 9 months ago (2015-03-26 21:12:38 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 21:15:23 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ac3c7563ee4a116ec66cbec8679afc9ec1a61da4
Cr-Commit-Position: refs/heads/master@{#322469}

Powered by Google App Engine
This is Rietveld 408576698