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

Unified Diff: mojo/public/c/system/thunks.cc

Issue 2725133002: Mojo: Armed Watchers (Closed)
Patch Set: . Created 3 years, 10 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/thunks.cc
diff --git a/mojo/public/c/system/thunks.cc b/mojo/public/c/system/thunks.cc
index d6bfd95d1741c3b65581ca4a5818effc905673a3..c8a25be9cb657a3b09e58e63a7996e204cb0a2f8 100644
--- a/mojo/public/c/system/thunks.cc
+++ b/mojo/public/c/system/thunks.cc
@@ -185,17 +185,22 @@ MojoResult MojoGetReadyHandles(MojoHandle wait_set,
signals_states);
}
-MojoResult MojoWatch(MojoHandle handle,
- MojoHandleSignals signals,
- MojoWatchCallback callback,
- uintptr_t context) {
- assert(g_thunks.Watch);
- return g_thunks.Watch(handle, signals, callback, context);
+MojoResult MojoRegisterWatcher(MojoHandle handle,
+ MojoHandleSignals signals,
+ MojoWatchCallback callback,
+ uintptr_t context) {
+ assert(g_thunks.RegisterWatcher);
+ return g_thunks.RegisterWatcher(handle, signals, callback, context);
}
-MojoResult MojoCancelWatch(MojoHandle handle, uintptr_t context) {
- assert(g_thunks.CancelWatch);
- return g_thunks.CancelWatch(handle, context);
+MojoResult MojoArmWatcher(MojoHandle handle, uintptr_t context) {
+ assert(g_thunks.ArmWatcher);
+ return g_thunks.ArmWatcher(handle, context);
+}
+
+MojoResult MojoUnregisterWatcher(MojoHandle handle, uintptr_t context) {
+ assert(g_thunks.UnregisterWatcher);
+ return g_thunks.UnregisterWatcher(handle, context);
}
MojoResult MojoFuseMessagePipes(MojoHandle handle0, MojoHandle handle1) {

Powered by Google App Engine
This is Rietveld 408576698