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

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

Issue 2093763002: Implement WaitSetDispatcher::WaitSetWaitImpl(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh 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/edk/system/wait_set_dispatcher_unittest.cc ('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_set.h
diff --git a/mojo/public/c/system/wait_set.h b/mojo/public/c/system/wait_set.h
index 49b3b80b5231cf2e7c279a042b02c2d65f56afc5..4e80ee3accde1339b0e80851c6840f8babeff9e6 100644
--- a/mojo/public/c/system/wait_set.h
+++ b/mojo/public/c/system/wait_set.h
@@ -60,8 +60,7 @@ struct MOJO_ALIGNAS(8) MojoWaitSetResult {
uint64_t cookie;
MojoResult wait_result;
uint32_t reserved;
- MojoHandleSignals satisfied_signals;
- MojoHandleSignals satisfiable_signals;
+ struct MojoHandleSignalsState signals_state;
};
MOJO_STATIC_ASSERT(sizeof(struct MojoWaitSetResult) == 24,
"MojoWaitSetResult has wrong size");
@@ -156,12 +155,10 @@ MojoResult MojoWaitSetRemove(MojoHandle wait_set_handle, // In.
// signals
// - |reserved| is set to 0
//
-// When the |wait_result| is |MOJO_RESULT_OK| or
-// |MOJO_RESULT_FAILED_PRECONDITION| the |satisfied_signals| and
-// |satisfiable_signals| entries are set to the signals the handle currently
-// satisfies and could possibly satisfy. When the |wait_result| is any other
-// value the |satisfied_signals| and |satisfiable_signals| entries are set to
-// |MOJO_HANDLE_SIGNALS_NONE|.
+// When |wait_result| is |MOJO_RESULT_OK| or |MOJO_RESULT_FAILED_PRECONDITION|
+// |signals_state| is set to the handle's current signal state; otherwise, it
+// is set to a zeroed |MojoHandleSignalsState| (in particular, both fields
+// will then be |MOJO_HANDLE_SIGNALS_NONE|).
//
// On any result other than |MOJO_RESULT_OK|, |*num_results|, |*results| and
// |*max_results| are not modified.
« no previous file with comments | « mojo/edk/system/wait_set_dispatcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698