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

Unified Diff: mojo/edk/system/message_pipe.h

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/message_pipe.h
diff --git a/mojo/edk/system/message_pipe.h b/mojo/edk/system/message_pipe.h
index d54ba7c9dd3485c2aff6d7079b736330f3f2b557..4cffa35ccf28e3d0bde130567e852be8bf9b5c67 100644
--- a/mojo/edk/system/message_pipe.h
+++ b/mojo/edk/system/message_pipe.h
@@ -117,6 +117,12 @@ class MessagePipe final : public ChannelEndpointClient {
size_t* actual_size,
std::vector<platform::ScopedPlatformHandle>* platform_handles);
+ // This "implements" |CancelAllAwakables()|, but assumes that |mutex_| is
+ // already held. This is for use by
+ // |MessagePipeDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock()|.
+ void CancelAllAwakablesNoLock(unsigned port)
+ MOJO_EXCLUSIVE_LOCKS_REQUIRED(mutex_);
+
// |ChannelEndpointClient| methods:
bool OnReadMessage(unsigned port, MessageInTransit* message) override;
void OnDetachFromChannel(unsigned port) override;

Powered by Google App Engine
This is Rietveld 408576698