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

Unified Diff: mojo/edk/system/data_pipe_producer_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/data_pipe_producer_dispatcher.h ('k') | mojo/edk/system/dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/data_pipe_producer_dispatcher.cc
diff --git a/mojo/edk/system/data_pipe_producer_dispatcher.cc b/mojo/edk/system/data_pipe_producer_dispatcher.cc
index c9c686a140fa3e7bdb2d9e83829bcd37493ec881..c6696cd616557dcbfad913392d3824428a590912 100644
--- a/mojo/edk/system/data_pipe_producer_dispatcher.cc
+++ b/mojo/edk/system/data_pipe_producer_dispatcher.cc
@@ -169,29 +169,23 @@ HandleSignalsState DataPipeProducerDispatcher::GetHandleSignalsStateImplNoLock()
MojoResult DataPipeProducerDispatcher::AddAwakableImplNoLock(
Awakable* awakable,
- MojoHandleSignals signals,
- bool force,
uint64_t context,
+ bool force,
+ MojoHandleSignals signals,
HandleSignalsState* signals_state) {
mutex().AssertHeld();
- return data_pipe_->ProducerAddAwakable(awakable, signals, force, context,
+ return data_pipe_->ProducerAddAwakable(awakable, context, force, signals,
signals_state);
}
void DataPipeProducerDispatcher::RemoveAwakableImplNoLock(
- Awakable* awakable,
- HandleSignalsState* signals_state) {
- mutex().AssertHeld();
- data_pipe_->ProducerRemoveAwakable(awakable, signals_state);
-}
-
-void DataPipeProducerDispatcher::RemoveAwakableWithContextImplNoLock(
+ bool match_context,
Awakable* awakable,
uint64_t context,
HandleSignalsState* signals_state) {
mutex().AssertHeld();
- data_pipe_->ProducerRemoveAwakableWithContext(awakable, context,
- signals_state);
+ data_pipe_->ProducerRemoveAwakable(match_context, awakable, context,
+ signals_state);
}
void DataPipeProducerDispatcher::StartSerializeImplNoLock(
« no previous file with comments | « mojo/edk/system/data_pipe_producer_dispatcher.h ('k') | mojo/edk/system/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698