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

Unified Diff: third_party/mojo/src/mojo/edk/system/message_pipe_dispatcher.cc

Issue 929433005: WIP: A couple of more ChannelMojo speedup ideas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build and test fix Created 5 years, 10 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
Index: third_party/mojo/src/mojo/edk/system/message_pipe_dispatcher.cc
diff --git a/third_party/mojo/src/mojo/edk/system/message_pipe_dispatcher.cc b/third_party/mojo/src/mojo/edk/system/message_pipe_dispatcher.cc
index a6733dbe324dfb1f4c118cfa5648390834db2c1b..5b80f9fcc0f751b4b4062210618433d87d8bbec4 100644
--- a/third_party/mojo/src/mojo/edk/system/message_pipe_dispatcher.cc
+++ b/third_party/mojo/src/mojo/edk/system/message_pipe_dispatcher.cc
@@ -195,6 +195,12 @@ void MessagePipeDispatcher::RemoveAwakableImplNoLock(
message_pipe_->RemoveAwakable(port_, awakable, signals_state);
}
+MojoResult MessagePipeDispatcher::SetAsyncMessageCallbackImplNoLock(
+ const AsyncMessageCallback& callback) {
+ lock().AssertAcquired();
+ return message_pipe_->SetAsyncMessageCallback(port_, callback);
+}
+
void MessagePipeDispatcher::StartSerializeImplNoLock(
Channel* channel,
size_t* max_size,

Powered by Google App Engine
This is Rietveld 408576698