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

Issue 1748503002: [mojo-edk] Add MojoWatch and MojoCancelWatch APIs (Closed)

Created:
4 years, 9 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[mojo-edk] Add MojoWatch and MojoCancelWatch APIs This adds MojoWatch() and MojoCancelWatch() APIs to support efficient asynchronous handle event notifications. BUG=590495 Committed: https://crrev.com/49b69e6b27a12426ba56b6b5271ccec9b54c94c2 Cr-Commit-Position: refs/heads/master@{#378677}

Patch Set 1 : #

Patch Set 2 : allow mojo usage from callback #

Patch Set 3 : RequestContext plumbing #

Patch Set 4 : . #

Total comments: 18

Patch Set 5 : address comments #

Total comments: 15

Patch Set 6 : #

Patch Set 7 : there can be only one RequestContext! #

Total comments: 8

Patch Set 8 : revert RequestContext usage, nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1127 lines, -5 lines) Patch
M mojo/edk/embedder/entrypoints.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M mojo/edk/system/BUILD.gn View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M mojo/edk/system/awakable_list.h View 1 2 3 4 3 chunks +14 lines, -0 lines 0 comments Download
M mojo/edk/system/awakable_list.cc View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M mojo/edk/system/core.h View 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/edk/system/core.cc View 1 2 3 4 5 6 23 chunks +50 lines, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_consumer_dispatcher.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_consumer_dispatcher.cc View 1 2 3 4 5 7 3 chunks +26 lines, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_producer_dispatcher.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_producer_dispatcher.cc View 1 2 3 4 5 7 3 chunks +26 lines, -0 lines 0 comments Download
M mojo/edk/system/dispatcher.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M mojo/edk/system/dispatcher.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/edk/system/message_pipe_dispatcher.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/edk/system/message_pipe_dispatcher.cc View 1 2 3 4 7 3 chunks +24 lines, -0 lines 0 comments Download
A mojo/edk/system/request_context.h View 1 2 3 4 5 7 1 chunk +82 lines, -0 lines 0 comments Download
A mojo/edk/system/request_context.cc View 1 2 3 4 5 6 7 1 chunk +77 lines, -0 lines 0 comments Download
A mojo/edk/system/watch_unittest.cc View 1 2 3 4 5 6 1 chunk +374 lines, -0 lines 0 comments Download
A mojo/edk/system/watcher.h View 1 2 3 4 5 1 chunk +85 lines, -0 lines 0 comments Download
A mojo/edk/system/watcher.cc View 1 2 3 4 5 1 chunk +52 lines, -0 lines 0 comments Download
A mojo/edk/system/watcher_set.h View 1 2 3 4 5 6 7 1 chunk +54 lines, -0 lines 0 comments Download
A mojo/edk/system/watcher_set.cc View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
M mojo/edk/test/mojo_test_base.h View 1 2 3 4 2 chunks +13 lines, -5 lines 0 comments Download
M mojo/edk/test/mojo_test_base.cc View 1 2 3 4 2 chunks +43 lines, -0 lines 0 comments Download
M mojo/mojo_edk.gyp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/mojo_edk_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/c/system/functions.h View 1 2 3 4 3 chunks +76 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
Ken Rockot(use gerrit already)
ptal
4 years, 9 months ago (2016-02-28 02:23:31 UTC) #3
Ken Rockot(use gerrit already)
Alright so a proper solution for Mojo system re-entrancy is now in place. It's pretty ...
4 years, 9 months ago (2016-02-28 06:25:03 UTC) #6
Anand Mistry (off Chromium)
The RequestContext plumbing adds a huge amount of noise to this change. What do you ...
4 years, 9 months ago (2016-02-29 12:03:35 UTC) #7
Ken Rockot(use gerrit already)
Thanks. I think I've addressed everything. To reduce redundant code in dispatchers for now I've ...
4 years, 9 months ago (2016-02-29 20:59:06 UTC) #8
Anand Mistry (off Chromium)
https://codereview.chromium.org/1748503002/diff/140001/mojo/edk/system/data_pipe_producer_dispatcher.cc File mojo/edk/system/data_pipe_producer_dispatcher.cc (right): https://codereview.chromium.org/1748503002/diff/140001/mojo/edk/system/data_pipe_producer_dispatcher.cc#newcode462 mojo/edk/system/data_pipe_producer_dispatcher.cc:462: void DataPipeProducerDispatcher::OnPortStatusChanged() { Don't you need a RequestContext here ...
4 years, 9 months ago (2016-03-01 07:30:40 UTC) #9
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1748503002/diff/140001/mojo/edk/system/data_pipe_producer_dispatcher.cc File mojo/edk/system/data_pipe_producer_dispatcher.cc (right): https://codereview.chromium.org/1748503002/diff/140001/mojo/edk/system/data_pipe_producer_dispatcher.cc#newcode462 mojo/edk/system/data_pipe_producer_dispatcher.cc:462: void DataPipeProducerDispatcher::OnPortStatusChanged() { On 2016/03/01 at 07:30:40, Anand Mistry ...
4 years, 9 months ago (2016-03-01 08:17:44 UTC) #10
Ken Rockot(use gerrit already)
FYI I went ahead and made the change to RequestContext usage to enforce that only ...
4 years, 9 months ago (2016-03-01 15:54:44 UTC) #11
Anand Mistry (off Chromium)
LGTM with nits and... I prefer what you had previously where you allowed (unused) nested ...
4 years, 9 months ago (2016-03-02 01:50:36 UTC) #14
Ken Rockot(use gerrit already)
Cool. I thought about it some more and I agree with you. Initially I was ...
4 years, 9 months ago (2016-03-02 02:09:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748503002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748503002/240001
4 years, 9 months ago (2016-03-02 02:10:29 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:240001)
4 years, 9 months ago (2016-03-02 03:46:46 UTC) #19
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 03:49:04 UTC) #21
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/49b69e6b27a12426ba56b6b5271ccec9b54c94c2
Cr-Commit-Position: refs/heads/master@{#378677}

Powered by Google App Engine
This is Rietveld 408576698