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

Unified Diff: mojo/system/core.h

Issue 419613003: Mojo: Modify plumbing for the WaitMany implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/system/core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/core.h
diff --git a/mojo/system/core.h b/mojo/system/core.h
index ba811f878479edfd92af4d917854b7f35b3c84d7..363b89732c3d3b15de427bb53b3314172e185d5a 100644
--- a/mojo/system/core.h
+++ b/mojo/system/core.h
@@ -108,11 +108,14 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
friend bool internal::ShutdownCheckNoLeaks(Core*);
// Internal implementation of |Wait()| and |WaitMany()|; doesn't do basic
- // validation of arguments.
+ // validation of arguments. |*result_index| is only set if the result (whether
+ // success or failure) applies to a specific handle, so its value should be
+ // preinitialized to |static_cast<uint32_t>(-1)|.
MojoResult WaitManyInternal(const MojoHandle* handles,
const MojoHandleSignals* signals,
uint32_t num_handles,
- MojoDeadline deadline);
+ MojoDeadline deadline,
+ uint32_t* result_index);
// ---------------------------------------------------------------------------
« no previous file with comments | « no previous file | mojo/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698