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

Unified Diff: mojo/edk/system/message_pipe_test_utils.cc

Issue 2084593005: Rationalize AddAwakable...() and RemoveAwakable...() methods. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 6 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/edk/system/message_pipe_endpoint.cc ('k') | mojo/edk/system/message_pipe_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_pipe_test_utils.cc
diff --git a/mojo/edk/system/message_pipe_test_utils.cc b/mojo/edk/system/message_pipe_test_utils.cc
index 25c6dfe25e1ca0327a70418cd0821b26c2c8a4fc..5ecef0b40f3cf6449bada7d32b848ccccb8c8085 100644
--- a/mojo/edk/system/message_pipe_test_utils.cc
+++ b/mojo/edk/system/message_pipe_test_utils.cc
@@ -30,7 +30,7 @@ MojoResult WaitIfNecessary(MessagePipe* mp,
waiter.Init();
MojoResult add_result =
- mp->AddAwakable(0, &waiter, signals, false, 0, signals_state);
+ mp->AddAwakable(0, &waiter, 0, false, signals, signals_state);
if (add_result != MOJO_RESULT_OK) {
return (add_result == MOJO_RESULT_ALREADY_EXISTS) ? MOJO_RESULT_OK
: add_result;
@@ -38,7 +38,7 @@ MojoResult WaitIfNecessary(MessagePipe* mp,
MojoResult wait_result =
waiter.Wait(MOJO_DEADLINE_INDEFINITE, nullptr, nullptr);
- mp->RemoveAwakable(0, &waiter, signals_state);
+ mp->RemoveAwakable(0, false, &waiter, 0, signals_state);
return wait_result;
}
« no previous file with comments | « mojo/edk/system/message_pipe_endpoint.cc ('k') | mojo/edk/system/message_pipe_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698