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

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

Issue 2754083003: Mojo EDK: Circulate MojoArmWatcher outputs to avoid starvation (Closed)
Patch Set: . Created 3 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
Index: mojo/public/c/system/watcher.h
diff --git a/mojo/public/c/system/watcher.h b/mojo/public/c/system/watcher.h
index f152c50a11cf91578d08a1bcd6649f8d0769410b..e32856b6d920d58b2e0fa121a5fb1fd683547e9c 100644
--- a/mojo/public/c/system/watcher.h
+++ b/mojo/public/c/system/watcher.h
@@ -167,8 +167,9 @@ MOJO_SYSTEM_EXPORT MojoResult MojoCancelWatch(MojoHandle watcher_handle,
// output buffers is written to |*num_ready_contexts| before returning.
//
// If more than (input) |*num_ready_contexts| watch contexts were ready to
-// notify, the subset presented in output buffers is arbitrary and
-// implementation-defined.
+// notify, the subset presented in output buffers is arbitrary, but the
+// implementation makes a best effort to circulate the outputs across
+// consecutive calls so that callers may reliably avoid handle starvation.
MOJO_SYSTEM_EXPORT MojoResult
MojoArmWatcher(MojoHandle watcher_handle,
uint32_t* num_ready_contexts,
« mojo/edk/system/watcher_dispatcher.cc ('K') | « mojo/edk/system/watcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698