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

Unified Diff: mojo/public/c/system/wait.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 | « mojo/public/c/system/message_pipe.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/wait.h
diff --git a/mojo/public/c/system/wait.h b/mojo/public/c/system/wait.h
index 1f4b97226e3069e82b7e917c4bf81210c88b9006..a846882d860e00bfae7c24bb1ffbec2aa0d98fbc 100644
--- a/mojo/public/c/system/wait.h
+++ b/mojo/public/c/system/wait.h
@@ -43,6 +43,9 @@ MOJO_BEGIN_EXTERN_C
// |MOJO_RESULT_FAILED_PRECONDITION| if it becomes known that none of the
// signals in |signals| can ever be satisfied (e.g., when waiting on one
// end of a message pipe and the other end is closed).
+// |MOJO_RESULT_BUSY| if |handle| is currently in use in some transaction
+// (that, e.g., may result in it being invalidated, such as being sent in
+// a message).
//
// If there are multiple waiters (on different threads, obviously) waiting on
// the same handle and signal, and that signal becomes satisfied, all waiters
@@ -92,6 +95,9 @@ MojoResult MojoWait(
// handles satisfying any of its signals.
// |MOJO_RESULT_FAILED_PRECONDITION| if it is or becomes impossible that SOME
// |handle[i]| will ever satisfy any of the signals in |signals[i]|.
+// |MOJO_RESULT_BUSY| if some |handle[i]| is currently in use in some
+// transaction (that, e.g., may result in it being invalidated, such as
+// being sent in a message).
MojoResult MojoWaitMany(const MojoHandle* MOJO_RESTRICT handles, // In.
const MojoHandleSignals* MOJO_RESTRICT signals, // In.
uint32_t num_handles, // In.
« no previous file with comments | « mojo/public/c/system/message_pipe.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698