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

Unified Diff: mojo/public/c/system/message_pipe.h

Issue 2042363003: Allow data pipe producer/consumer handles to be transferred during two-phase operations. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_dp_cancel_two_phase
Patch Set: Created 4 years, 6 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
« no previous file with comments | « mojo/public/c/system/handle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/message_pipe.h
diff --git a/mojo/public/c/system/message_pipe.h b/mojo/public/c/system/message_pipe.h
index 166e08f7d58686ddf3bad26020fa85d1a6af14f0..053c983151d55391cc6b06c30460d0bff01716be 100644
--- a/mojo/public/c/system/message_pipe.h
+++ b/mojo/public/c/system/message_pipe.h
@@ -89,9 +89,11 @@ MojoResult MojoCreateMessagePipe(
// null, in which case |num_handles| must be zero.
//
// If handles are attached, on success the handles will no longer be valid (the
-// receiver will receive equivalent, but logically different, handles). Handles
-// to be sent should not be in simultaneous use (e.g., on another thread). On
-// failure, any handles to be attached will remain valid.
+// receiver will receive equivalent, but logically different, handles) and any
+// ongoing two-phase operations (e.g., for data pipes) on them will be aborted.
+// Handles to be sent should not be in simultaneous use (e.g., on another
+// thread). On failure, any handles to be attached will remain valid (and
+// two-phase operations will not be aborted).
//
// Returns:
// |MOJO_RESULT_OK| on success (i.e., the message was enqueued).
« no previous file with comments | « mojo/public/c/system/handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698