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

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

Issue 345463003: Mojo: MojoWaitFlags -> MojoHandleSignals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/environment/async_waiter.h ('k') | mojo/public/c/system/tests/core_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/functions.h
diff --git a/mojo/public/c/system/functions.h b/mojo/public/c/system/functions.h
index 71449ec10f49a2a1c14a58559ba80a43ce85fdda..9d2ef6ca8004bb08ec9f56501f2e18c7e0725d92 100644
--- a/mojo/public/c/system/functions.h
+++ b/mojo/public/c/system/functions.h
@@ -42,41 +42,41 @@ MOJO_SYSTEM_EXPORT MojoTimeTicks MojoGetTimeTicksNow(void);
// fail with |MOJO_RESULT_INVALID_ARGUMENT| if they happen after.
MOJO_SYSTEM_EXPORT MojoResult MojoClose(MojoHandle handle);
-// Waits on the given handle until the state indicated by |flags| is satisfied
+// Waits on the given handle until a signal indicated by |signals| is satisfied
// or until |deadline| has passed.
//
// Returns:
-// |MOJO_RESULT_OK| if some flag in |flags| was satisfied (or is already
+// |MOJO_RESULT_OK| if some signal in |signals| was satisfied (or is already
// satisfied).
// |MOJO_RESULT_INVALID_ARGUMENT| if |handle| is not a valid handle (e.g., if
// it has already been closed).
// |MOJO_RESULT_DEADLINE_EXCEEDED| if the deadline has passed without any of
-// the flags being satisfied.
+// the signals being satisfied.
// |MOJO_RESULT_FAILED_PRECONDITION| if it is or becomes impossible that any
-// flag in |flags| will ever be satisfied.
+// signal in |signals| will ever be satisfied.
//
// If there are multiple waiters (on different threads, obviously) waiting on
-// the same handle and flag and that flag becomes set, all waiters will be
-// awoken.
+// the same handle and signal, and that signal becomes is satisfied, all waiters
+// will be awoken.
MOJO_SYSTEM_EXPORT MojoResult MojoWait(MojoHandle handle,
- MojoWaitFlags flags,
+ MojoHandleSignals signals,
MojoDeadline deadline);
// Waits on |handles[0]|, ..., |handles[num_handles-1]| for at least one of them
-// to satisfy the state indicated by |flags[0]|, ..., |flags[num_handles-1]|,
+// to satisfy a signal indicated by |signals[0]|, ..., |signals[num_handles-1]|,
// respectively, or until |deadline| has passed.
//
// Returns:
-// The index |i| (from 0 to |num_handles-1|) if |handle[i]| satisfies
-// |flags[i]|.
+// The index |i| (from 0 to |num_handles-1|) if |handle[i]| satisfies a signal
+// from |signals[i]|.
// |MOJO_RESULT_INVALID_ARGUMENT| if some |handle[i]| is not a valid handle
// (e.g., if it has already been closed).
// |MOJO_RESULT_DEADLINE_EXCEEDED| if the deadline has passed without any of
-// handles satisfying any of its flags.
+// 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 its flags |flags[i]|.
+// |handle[i]| will ever satisfy any of the signals in |signals[i]|.
MOJO_SYSTEM_EXPORT MojoResult MojoWaitMany(const MojoHandle* handles,
- const MojoWaitFlags* flags,
+ const MojoHandleSignals* signals,
uint32_t num_handles,
MojoDeadline deadline);
« no previous file with comments | « mojo/public/c/environment/async_waiter.h ('k') | mojo/public/c/system/tests/core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698