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

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

Issue 1817303002: Update comments in system headers to include MOJO_RESULT_BUSY behavior. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | mojo/public/c/system/data_pipe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/buffer.h
diff --git a/mojo/public/c/system/buffer.h b/mojo/public/c/system/buffer.h
index 4024022424533dfb08e6a0a0d063cc8b528e0f95..72cd5d87bf1daaeae8b51a70436b5e6130cf4ea1 100644
--- a/mojo/public/c/system/buffer.h
+++ b/mojo/public/c/system/buffer.h
@@ -139,6 +139,9 @@ MojoResult MojoCreateSharedBuffer(
// |MOJO_RESULT_INVALID_ARGUMENT| if some argument was invalid (e.g.,
// |buffer_handle| is not a valid buffer handle or |*options| is invalid).
// |MOJO_RESULT_UNIMPLEMENTED| if an unsupported flag was set in |*options|.
+// |MOJO_RESULT_BUSY| if |buffer_handle| is currently in use in some
+// transaction (that, e.g., may result in it being invalidated, such as
+// being sent in a message).
MojoResult MojoDuplicateBufferHandle(
MojoHandle buffer_handle, // In.
const struct MojoDuplicateBufferHandleOptions* MOJO_RESTRICT
@@ -162,6 +165,9 @@ MojoResult MojoDuplicateBufferHandle(
// |MOJO_RESULT_INVALID_ARGUMENT| if some argument was invalid (e.g.,
// |buffer_handle| is not a valid buffer handle, |*info| is null, or
// |info_num_bytes| is too small).
+// |MOJO_RESULT_BUSY| if |buffer_handle| is currently in use in some
+// transaction (that, e.g., may result in it being invalidated, such as
+// being sent in a message).
MojoResult MojoGetBufferInformation(MojoHandle buffer_handle, // In.
struct MojoBufferInformation* info, // Out.
uint32_t info_num_bytes); // In.
@@ -189,6 +195,9 @@ MojoResult MojoGetBufferInformation(MojoHandle buffer_handle, // In.
// |offset| and |num_bytes| is not valid).
// |MOJO_RESULT_RESOURCE_EXHAUSTED| if the mapping operation itself failed
// (e.g., due to not having appropriate address space available).
+// |MOJO_RESULT_BUSY| if |buffer_handle| is currently in use in some
+// transaction (that, e.g., may result in it being invalidated, such as
+// being sent in a message).
MojoResult MojoMapBuffer(MojoHandle buffer_handle, // In.
uint64_t offset, // In.
uint64_t num_bytes, // In.
« no previous file with comments | « no previous file | mojo/public/c/system/data_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698