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

Unified Diff: mojo/edk/system/data_pipe_producer_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/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 bfa7646026a5047f4f00383c2772483acfa4a4f9..e89f44f26b41da7bf68e34e88cc910418de025cd 100644
--- a/mojo/edk/system/data_pipe_producer_dispatcher.cc
+++ b/mojo/edk/system/data_pipe_producer_dispatcher.cc
@@ -72,9 +72,13 @@ void DataPipeProducerDispatcher::CloseImplNoLock() {
}
RefPtr<Dispatcher>
-DataPipeProducerDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock() {
+DataPipeProducerDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock(
+ MessagePipe* /*message_pipe*/,
+ unsigned /*port*/) {
mutex().AssertHeld();
+ CancelAllAwakablesNoLock();
+
auto dispatcher = DataPipeProducerDispatcher::Create();
dispatcher->Init(std::move(data_pipe_));
return dispatcher;

Powered by Google App Engine
This is Rietveld 408576698