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

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

Issue 2110103002: Make MojoWaitMany() accept zero handles. (Closed) Base URL: https://github.com/domokit/mojo.git@master
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/tests/wait_unittest.cc ('k') | mojo/public/js/core_unittests.js » ('j') | 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 e408325276f518ead84037b1e3dac0df1efce25e..aa1f3b7c9e5dd520d674f93b958d348bdeaadf73 100644
--- a/mojo/public/c/system/wait.h
+++ b/mojo/public/c/system/wait.h
@@ -71,6 +71,11 @@ MojoResult MojoWait(
//
// See |MojoWait()| for more details about |deadline|.
//
+// Note that if |num_handles| is 0, this will wait until |deadline| has passed
+// (possibly forever if it is |MOJO_DEADLINE_INDEFINITE|), and handles|,
+// |signals|, |result_index|, and |signals_states| will all be ignored (so they
+// may be null or invalid pointers).
+//
// |result_index| (optional) is used to return the index of the handle that
// caused the call to return. For example, the index |i| (from 0 to
// |num_handles-1|) if |handle[i]| satisfies a signal from |signals[i]|. You
« no previous file with comments | « mojo/public/c/system/tests/wait_unittest.cc ('k') | mojo/public/js/core_unittests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698