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

Issue 1461213002: WaitSet implementation for old EDK. (Closed)

Created:
5 years, 1 month ago by Anand Mistry (off Chromium)
Modified:
5 years ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mojo-waitset-skeleton
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WaitSet implementation for old EDK. BUG=556865 Committed: https://crrev.com/428364d72b6ccf283fff9ce0c9ea58dac3805615 Cr-Commit-Position: refs/heads/master@{#364309}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rebase and sync to latest API. #

Patch Set 3 : Fix builds and test. #

Patch Set 4 : Implicitly remove closed dispatchers. #

Patch Set 5 : Fixes. #

Patch Set 6 : Rebase #

Total comments: 6

Patch Set 7 : Address comments. #

Patch Set 8 : Rebase. #

Total comments: 36

Patch Set 9 : Address comments, add test, and format. #

Patch Set 10 : Fix windows build and style issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1014 lines, -10 lines) Patch
M mojo/public/c/system/wait_set.h View 1 2 3 4 5 6 3 chunks +8 lines, -3 lines 0 comments Download
M mojo/public/platform/native/system_thunks.h View 1 2 chunks +17 lines, -1 line 0 comments Download
M mojo/public/platform/native/system_thunks.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/mojo/mojo_edk_system_impl.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/mojo/mojo_edk_tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/mojo/src/mojo/edk/system/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/mojo/src/mojo/edk/system/core.cc View 1 2 3 4 5 6 7 8 6 chunks +33 lines, -6 lines 0 comments Download
M third_party/mojo/src/mojo/edk/system/dispatcher.h View 1 2 3 4 5 6 7 8 3 chunks +32 lines, -0 lines 0 comments Download
M third_party/mojo/src/mojo/edk/system/dispatcher.cc View 1 2 3 4 5 6 7 8 3 chunks +61 lines, -0 lines 0 comments Download
A third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.h View 1 2 1 chunk +94 lines, -0 lines 0 comments Download
A third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc View 1 2 3 4 5 6 7 8 1 chunk +277 lines, -0 lines 0 comments Download
A third_party/mojo/src/mojo/edk/system/wait_set_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +459 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 23 (7 generated)
Anand Mistry (off Chromium)
The one thing I haven't done yet is add comments to wait_set_dispatcher.h, so ignore that. ...
5 years, 1 month ago (2015-11-20 05:18:26 UTC) #2
Ken Rockot(use gerrit already)
Looks good overall. The only really rough spot is the implementation of GetWokenDispatcherImplNoLock, imho. https://codereview.chromium.org/1461213002/diff/1/third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc ...
5 years ago (2015-11-24 16:32:08 UTC) #3
Anand Mistry (off Chromium)
PTAL. https://codereview.chromium.org/1461213002/diff/1/third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc File third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc (right): https://codereview.chromium.org/1461213002/diff/1/third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc#newcode124 third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc:124: awoken_queue_empty = awoken_queue_.empty(); On 2015/11/24 16:32:07, Ken Rockot ...
5 years ago (2015-12-04 02:31:44 UTC) #4
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1461213002/diff/1/third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc File third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc (right): https://codereview.chromium.org/1461213002/diff/1/third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc#newcode124 third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc:124: awoken_queue_empty = awoken_queue_.empty(); On 2015/12/04 at 02:31:44, Anand ...
5 years ago (2015-12-08 20:27:08 UTC) #5
Anand Mistry (off Chromium)
yzshen: I need your review because OWNERS (//mojo/public).
5 years ago (2015-12-09 06:00:01 UTC) #6
yzshen1
https://codereview.chromium.org/1461213002/diff/100001/third_party/mojo/src/mojo/edk/system/core.cc File third_party/mojo/src/mojo/edk/system/core.cc (right): https://codereview.chromium.org/1461213002/diff/100001/third_party/mojo/src/mojo/edk/system/core.cc#newcode259 third_party/mojo/src/mojo/edk/system/core.cc:259: signals_states.At(i).Put(awoken_dispatchers[i]->GetHandleSignalsState()); nit: Do we also need to set signals_states.At(i) ...
5 years ago (2015-12-09 07:18:10 UTC) #7
Anand Mistry (off Chromium)
https://codereview.chromium.org/1461213002/diff/100001/third_party/mojo/src/mojo/edk/system/core.cc File third_party/mojo/src/mojo/edk/system/core.cc (right): https://codereview.chromium.org/1461213002/diff/100001/third_party/mojo/src/mojo/edk/system/core.cc#newcode259 third_party/mojo/src/mojo/edk/system/core.cc:259: signals_states.At(i).Put(awoken_dispatchers[i]->GetHandleSignalsState()); On 2015/12/09 07:18:09, yzshen1 wrote: > nit: Do ...
5 years ago (2015-12-09 22:42:24 UTC) #8
yzshen1
lgtm
5 years ago (2015-12-09 23:16:19 UTC) #9
Sam McNally
https://codereview.chromium.org/1461213002/diff/140001/third_party/mojo/src/mojo/edk/system/core.cc File third_party/mojo/src/mojo/edk/system/core.cc (right): https://codereview.chromium.org/1461213002/diff/140001/third_party/mojo/src/mojo/edk/system/core.cc#newcode253 third_party/mojo/src/mojo/edk/system/core.cc:253: count, &awoken_dispatchers, results, MakeUserPointer(&contexts->front())); contexts->data() https://codereview.chromium.org/1461213002/diff/140001/third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc File third_party/mojo/src/mojo/edk/system/wait_set_dispatcher.cc (right): ...
5 years ago (2015-12-10 02:38:18 UTC) #10
Anand Mistry (off Chromium)
sammc: Also added the test you suggested offline. https://codereview.chromium.org/1461213002/diff/140001/third_party/mojo/src/mojo/edk/system/core.cc File third_party/mojo/src/mojo/edk/system/core.cc (right): https://codereview.chromium.org/1461213002/diff/140001/third_party/mojo/src/mojo/edk/system/core.cc#newcode253 third_party/mojo/src/mojo/edk/system/core.cc:253: count, ...
5 years ago (2015-12-10 04:45:24 UTC) #11
Sam McNally
lgtm
5 years ago (2015-12-10 04:50:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461213002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461213002/160001
5 years ago (2015-12-10 05:31:31 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/120423)
5 years ago (2015-12-10 06:13:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461213002/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461213002/170001
5 years ago (2015-12-10 06:22:54 UTC) #20
commit-bot: I haz the power
Committed patchset #10 (id:170001)
5 years ago (2015-12-10 07:29:24 UTC) #21
commit-bot: I haz the power
5 years ago (2015-12-10 07:30:04 UTC) #23
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/428364d72b6ccf283fff9ce0c9ea58dac3805615
Cr-Commit-Position: refs/heads/master@{#364309}

Powered by Google App Engine
This is Rietveld 408576698