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

Unified Diff: third_party/mojo/src/mojo/edk/embedder/entrypoints.cc

Issue 1429553002: API definition for WaitSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 1 month 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: third_party/mojo/src/mojo/edk/embedder/entrypoints.cc
diff --git a/third_party/mojo/src/mojo/edk/embedder/entrypoints.cc b/third_party/mojo/src/mojo/edk/embedder/entrypoints.cc
index 024b6d64c304dfa34cbb936044c043c3bd0309de..7532b3316b49802ee6148726d1ca0c1c153cb4d0 100644
--- a/third_party/mojo/src/mojo/edk/embedder/entrypoints.cc
+++ b/third_party/mojo/src/mojo/edk/embedder/entrypoints.cc
@@ -66,6 +66,36 @@ MojoResult MojoWaitMany(const MojoHandle* handles,
MakeUserPointer(signals_states));
}
+MojoResult MojoCreateWaitSet(MojoHandle* wait_set_handle) {
+ if (UseNewEDK())
+ return MOJO_RESULT_UNIMPLEMENTED;
+ return g_core->CreateWaitSet(MakeUserPointer(wait_set_handle));
+}
+
+MojoResult MojoAddWaiter(MojoHandle wait_set_handle,
+ MojoHandle handle,
+ MojoHandleSignals signals) {
+ if (UseNewEDK())
+ return MOJO_RESULT_UNIMPLEMENTED;
+ return g_core->AddWaiter(wait_set_handle, handle, signals);
+}
+
+MojoResult MojoRemoveWaiter(MojoHandle wait_set_handle,
+ MojoHandle handle) {
+ if (UseNewEDK())
+ return MOJO_RESULT_UNIMPLEMENTED;
+ return g_core->RemoveWaiter(wait_set_handle, handle);
+}
+
+MojoResult MojoGetReadyHandle(MojoHandle wait_set_handle,
+ MojoHandle* handle,
+ struct MojoHandleSignalsState *signals_state) {
+ if (UseNewEDK())
+ return MOJO_RESULT_UNIMPLEMENTED;
+ return g_core->GetReadyHandle(wait_set_handle, MakeUserPointer(handle),
+ MakeUserPointer(signals_state));
+}
+
MojoResult MojoCreateMessagePipe(const MojoCreateMessagePipeOptions* options,
MojoHandle* message_pipe_handle0,
MojoHandle* message_pipe_handle1) {

Powered by Google App Engine
This is Rietveld 408576698