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

Issue 798993003: Add embedder::AsyncWait() (Closed)

Created:
6 years ago by Hajime Morrita
Modified:
6 years ago
Reviewers:
gmorrita, viettrungluu
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Add embedder::AsyncWait() This allows embedders to wait on a handle without having any extra thread. R=viettrungluu@chromium.org TEST=EmbedderTest.AsyncWait BUG=436189 Committed: https://chromium.googlesource.com/external/mojo/+/7ab59808c6aec184ba1af819abb2a18c49005c33

Patch Set 1 #

Total comments: 24

Patch Set 2 : Updated #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -2 lines) Patch
M mojo/edk/embedder/embedder.h View 1 chunk +9 lines, -0 lines 0 comments Download
M mojo/edk/embedder/embedder.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/edk/embedder/embedder_unittest.cc View 1 2 chunks +90 lines, -0 lines 0 comments Download
M mojo/edk/mojo_edk_system_impl.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/edk/system/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A mojo/edk/system/async_waiter.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A mojo/edk/system/async_waiter.cc View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M mojo/edk/system/core.h View 2 chunks +9 lines, -0 lines 0 comments Download
M mojo/edk/system/core.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M mojo/edk/system/core_test_base.h View 1 4 chunks +11 lines, -0 lines 0 comments Download
M mojo/edk/system/core_test_base.cc View 1 2 5 chunks +33 lines, -2 lines 0 comments Download
M mojo/edk/system/core_unittest.cc View 1 2 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Hajime Morrita
6 years ago (2014-12-12 19:00:55 UTC) #1
viettrungluu
https://codereview.chromium.org/798993003/diff/1/mojo/edk/embedder/embedder_unittest.cc File mojo/edk/embedder/embedder_unittest.cc (right): https://codereview.chromium.org/798993003/diff/1/mojo/edk/embedder/embedder_unittest.cc#newcode185 mojo/edk/embedder/embedder_unittest.cc:185: MojoResult wait_result_; You should probably call this just "result_", ...
6 years ago (2014-12-12 21:39:31 UTC) #2
viettrungluu
https://codereview.chromium.org/798993003/diff/1/mojo/edk/embedder/embedder_unittest.cc File mojo/edk/embedder/embedder_unittest.cc (right): https://codereview.chromium.org/798993003/diff/1/mojo/edk/embedder/embedder_unittest.cc#newcode190 mojo/edk/embedder/embedder_unittest.cc:190: void ReadAndIgnore(MojoHandle pipe) { On 2014/12/12 21:39:30, viettrungluu wrote: ...
6 years ago (2014-12-12 21:40:22 UTC) #3
gmorrita
PTAL? https://codereview.chromium.org/798993003/diff/1/mojo/edk/embedder/embedder_unittest.cc File mojo/edk/embedder/embedder_unittest.cc (right): https://codereview.chromium.org/798993003/diff/1/mojo/edk/embedder/embedder_unittest.cc#newcode185 mojo/edk/embedder/embedder_unittest.cc:185: MojoResult wait_result_; On 2014/12/12 21:39:30, viettrungluu wrote: > ...
6 years ago (2014-12-12 22:56:28 UTC) #5
viettrungluu
https://codereview.chromium.org/798993003/diff/20001/mojo/edk/system/async_waiter.cc File mojo/edk/system/async_waiter.cc (right): https://codereview.chromium.org/798993003/diff/20001/mojo/edk/system/async_waiter.cc#newcode1 mojo/edk/system/async_waiter.cc:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years ago (2014-12-12 23:03:52 UTC) #6
gmorrita
PTAL? https://codereview.chromium.org/798993003/diff/20001/mojo/edk/system/async_waiter.cc File mojo/edk/system/async_waiter.cc (right): https://codereview.chromium.org/798993003/diff/20001/mojo/edk/system/async_waiter.cc#newcode1 mojo/edk/system/async_waiter.cc:1: // Copyright 2013 The Chromium Authors. All rights ...
6 years ago (2014-12-12 23:08:49 UTC) #7
viettrungluu
lgtm
6 years ago (2014-12-12 23:22:43 UTC) #8
gmorrita
On 2014/12/12 23:22:43, viettrungluu wrote: > lgtm Thank you! Landing.
6 years ago (2014-12-12 23:26:57 UTC) #9
Hajime Morrita
6 years ago (2014-12-12 23:30:29 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
7ab59808c6aec184ba1af819abb2a18c49005c33 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698