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

Unified Diff: mojo/edk/system/message_pipe_dispatcher.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_dispatcher.h ('k') | mojo/edk/system/message_pipe_dispatcher_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_dispatcher.cc
diff --git a/mojo/edk/system/message_pipe_dispatcher.cc b/mojo/edk/system/message_pipe_dispatcher.cc
index e16548e0b1b99925199ea4fe09a0e13b14d3bb08..8c7994c69e37d57fea6c71475adf0874c955a8c2 100644
--- a/mojo/edk/system/message_pipe_dispatcher.cc
+++ b/mojo/edk/system/message_pipe_dispatcher.cc
@@ -202,29 +202,23 @@ HandleSignalsState MessagePipeDispatcher::GetHandleSignalsStateImplNoLock()
MojoResult MessagePipeDispatcher::AddAwakableImplNoLock(
Awakable* awakable,
- MojoHandleSignals signals,
- bool force,
uint64_t context,
+ bool force,
+ MojoHandleSignals signals,
HandleSignalsState* signals_state) {
mutex().AssertHeld();
- return message_pipe_->AddAwakable(port_, awakable, signals, force, context,
+ return message_pipe_->AddAwakable(port_, awakable, context, force, signals,
signals_state);
}
void MessagePipeDispatcher::RemoveAwakableImplNoLock(
- Awakable* awakable,
- HandleSignalsState* signals_state) {
- mutex().AssertHeld();
- message_pipe_->RemoveAwakable(port_, awakable, signals_state);
-}
-
-void MessagePipeDispatcher::RemoveAwakableWithContextImplNoLock(
+ bool match_context,
Awakable* awakable,
uint64_t context,
HandleSignalsState* signals_state) {
mutex().AssertHeld();
- message_pipe_->RemoveAwakableWithContext(port_, awakable, context,
- signals_state);
+ message_pipe_->RemoveAwakable(port_, match_context, awakable, context,
+ signals_state);
}
void MessagePipeDispatcher::StartSerializeImplNoLock(
« no previous file with comments | « mojo/edk/system/message_pipe_dispatcher.h ('k') | mojo/edk/system/message_pipe_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698