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

Issue 2741353002: Mojo: Add signal for new data pipe consumer data (Closed)

Created:
3 years, 9 months ago by Ken Rockot(use gerrit already)
Modified:
3 years, 9 months ago
Reviewers:
yzshen1
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo: Add signal for new data pipe consumer data Adds a new MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE signal. This signal is raised on a data pipe consumer handle whenever new data is written into the pipe, and is held high until the next MojoReadData or MojoBeginReadData attempt on the handle. This may act as a more useful signal for data pipe consumers who want to wait for a minimum amount of data to become available before reading, as it can be watched independent of general readability so that new work is only attempted when new data is ready. BUG=700171 Review-Url: https://codereview.chromium.org/2741353002 Cr-Commit-Position: refs/heads/master@{#456450} Committed: https://chromium.googlesource.com/chromium/src/+/e9032c783d6a470dcd04d3af16cb02d4ee621f7b

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -76 lines) Patch
M mojo/edk/system/core_unittest.cc View 6 chunks +23 lines, -12 lines 0 comments Download
M mojo/edk/system/data_pipe_consumer_dispatcher.h View 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_consumer_dispatcher.cc View 1 5 chunks +19 lines, -3 lines 0 comments Download
M mojo/edk/system/data_pipe_unittest.cc View 33 chunks +165 lines, -57 lines 0 comments Download
M mojo/public/c/system/tests/core_unittest.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M mojo/public/c/system/types.h View 2 chunks +7 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/handle_passing_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (17 generated)
Ken Rockot(use gerrit already)
Per your suggestion. Very simple change, most of the work here is just updating test ...
3 years, 9 months ago (2017-03-12 22:25:16 UTC) #8
Ken Rockot(use gerrit already)
After thinking a bit more about how this can be used, I think it really ...
3 years, 9 months ago (2017-03-13 15:31:03 UTC) #12
yzshen1
I think we also need to the same change for the data pipe producer for ...
3 years, 9 months ago (2017-03-13 19:03:04 UTC) #17
Ken Rockot(use gerrit already)
Yep, I was going to add a similar facility (MOJO_HANDLE_SIGNAL_NEW_CAPACITY_WRITABLE) for producers in a future ...
3 years, 9 months ago (2017-03-13 19:06:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2741353002/40001
3 years, 9 months ago (2017-03-13 19:07:03 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 20:08:42 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e9032c783d6a470dcd04d3af16cb...

Powered by Google App Engine
This is Rietveld 408576698