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

Issue 1519563003: Use a monotonic clock in the implementation of Timer. (Closed)

Created:
5 years ago by rmacnak
Modified:
5 years ago
Reviewers:
zra, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use a monotonic clock in the implementation of Timer. Ask the embedder for the current time, since it is the embedder who later compares the deadline with current time when deciding when to send a wake up message. BUG=http://dartbug.com/25055 BUG=http://dartbug.com/25216 R=iposva@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/9387fead15f6158abc502702d0091c355d69dec3

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -51 lines) Patch
M runtime/bin/common_patch.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/eventhandler.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/bin/eventhandler_android.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/eventhandler_macos.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/eventhandler_patch.dart View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/bin/eventhandler_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/io_natives.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/utils.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/utils_android.cc View 1 2 1 chunk +10 lines, -6 lines 0 comments Download
M runtime/bin/utils_linux.cc View 1 2 1 chunk +10 lines, -6 lines 0 comments Download
M runtime/bin/utils_macos.cc View 1 2 2 chunks +38 lines, -8 lines 0 comments Download
M runtime/bin/utils_win.cc View 1 2 1 chunk +33 lines, -21 lines 0 comments Download
M runtime/lib/internal_patch.dart View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/lib/timer_impl.dart View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
rmacnak
5 years ago (2015-12-10 22:14:54 UTC) #3
zra
https://chromiumcodereview.appspot.com/1519563003/diff/80001/runtime/bin/utils_android.cc File runtime/bin/utils_android.cc (right): https://chromiumcodereview.appspot.com/1519563003/diff/80001/runtime/bin/utils_android.cc#newcode84 runtime/bin/utils_android.cc:84: // Convert to microseconds. Maybe try to pull out ...
5 years ago (2015-12-10 22:53:46 UTC) #4
rmacnak
https://chromiumcodereview.appspot.com/1519563003/diff/80001/runtime/bin/utils_android.cc File runtime/bin/utils_android.cc (right): https://chromiumcodereview.appspot.com/1519563003/diff/80001/runtime/bin/utils_android.cc#newcode84 runtime/bin/utils_android.cc:84: // Convert to microseconds. On 2015/12/10 22:53:46, zra wrote: ...
5 years ago (2015-12-11 18:39:40 UTC) #5
Ivan Posva
LGTM Thanks, -Ivan
5 years ago (2015-12-11 20:21:02 UTC) #6
zra
lgtm
5 years ago (2015-12-11 20:22:34 UTC) #7
rmacnak
5 years ago (2015-12-11 20:40:00 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
9387fead15f6158abc502702d0091c355d69dec3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698