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

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

Issue 1943123002: Make it possible to write a message pipe endpoint's peer into it. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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: mojo/edk/system/dispatcher.cc
diff --git a/mojo/edk/system/dispatcher.cc b/mojo/edk/system/dispatcher.cc
index 386fa0eae9a213d0e4d5d774d99049df8329f6aa..f3ef810d28b5d917dba9163813cc934bcc7734f5 100644
--- a/mojo/edk/system/dispatcher.cc
+++ b/mojo/edk/system/dispatcher.cc
@@ -526,13 +526,14 @@ void Dispatcher::CloseNoLock() {
CloseImplNoLock();
}
-RefPtr<Dispatcher> Dispatcher::CreateEquivalentDispatcherAndCloseNoLock() {
+RefPtr<Dispatcher> Dispatcher::CreateEquivalentDispatcherAndCloseNoLock(
+ MessagePipe* message_pipe,
+ unsigned port) {
mutex_.AssertHeld();
DCHECK(!is_closed_);
is_closed_ = true;
- CancelAllAwakablesNoLock();
- return CreateEquivalentDispatcherAndCloseImplNoLock();
+ return CreateEquivalentDispatcherAndCloseImplNoLock(message_pipe, port);
}
void Dispatcher::StartSerialize(Channel* channel,

Powered by Google App Engine
This is Rietveld 408576698