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

Unified Diff: mojo/public/cpp/utility/lib/run_loop.cc

Issue 2141083003: Add a perf test for async wait and fix a bug in mojo::RunLoop. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: oops Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/environment/tests/run_loop_async_wait_perftest.cc ('k') | mojo/tools/get_test_list.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/utility/lib/run_loop.cc
diff --git a/mojo/public/cpp/utility/lib/run_loop.cc b/mojo/public/cpp/utility/lib/run_loop.cc
index 716b1b349868090d5d25e8cb24b9c2983c0e5a33..4ca04da219ff57a95a8b938608dd7695edc991a6 100644
--- a/mojo/public/cpp/utility/lib/run_loop.cc
+++ b/mojo/public/cpp/utility/lib/run_loop.cc
@@ -345,6 +345,9 @@ bool RunLoop::NotifyResults(const std::vector<MojoWaitSetResult>& results) {
auto handler = it->second.handler;
handlers_.erase(it);
+ MojoResult r = WaitSetRemove(wait_set_.get(), id);
+ MOJO_ALLOW_UNUSED_LOCAL(r);
+ assert(r == MOJO_RESULT_OK);
if (result.wait_result == MOJO_RESULT_OK)
handler->OnHandleReady(id);
else
« no previous file with comments | « mojo/public/cpp/environment/tests/run_loop_async_wait_perftest.cc ('k') | mojo/tools/get_test_list.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698