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

Unified Diff: third_party/mojo/src/mojo/edk/system/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/dispatcher.cc
diff --git a/third_party/mojo/src/mojo/edk/system/dispatcher.cc b/third_party/mojo/src/mojo/edk/system/dispatcher.cc
index e2f2b8784f4684c9d1c074e1a7aae65e8c6ccd66..dda757017acf0247fd470a169f1568436536b234 100644
--- a/third_party/mojo/src/mojo/edk/system/dispatcher.cc
+++ b/third_party/mojo/src/mojo/edk/system/dispatcher.cc
@@ -246,6 +246,12 @@ void Dispatcher::RemoveAwakable(Awakable* awakable,
RemoveAwakableImplNoLock(awakable, handle_signals_state);
}
+MojoResult Dispatcher::SetAsyncMessageCallback(
+ const AsyncMessageCallback& callback) {
+ base::AutoLock locker(lock_);
+ return SetAsyncMessageCallbackImplNoLock(callback);
+}
+
Dispatcher::Dispatcher() : is_closed_(false) {
}
@@ -395,6 +401,13 @@ void Dispatcher::RemoveAwakableImplNoLock(Awakable* /*awakable*/,
*signals_state = HandleSignalsState();
}
+MojoResult Dispatcher::SetAsyncMessageCallbackImplNoLock(
+ const AsyncMessageCallback& callback) {
+ lock_.AssertAcquired();
+ NOTREACHED();
+ return MOJO_RESULT_INTERNAL;
+}
+
void Dispatcher::StartSerializeImplNoLock(Channel* /*channel*/,
size_t* max_size,
size_t* max_platform_handles) {
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/dispatcher.h ('k') | third_party/mojo/src/mojo/edk/system/endpoint_relayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698