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

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: Rebase. Created 5 years 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 | « third_party/mojo/mojo_public.gyp ('k') | third_party/mojo/src/mojo/edk/system/core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f6e7de503bac683b715758bef782997e675570a8 100644
--- a/third_party/mojo/src/mojo/edk/embedder/entrypoints.cc
+++ b/third_party/mojo/src/mojo/edk/embedder/entrypoints.cc
@@ -66,6 +66,40 @@ 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 MojoAddHandle(MojoHandle wait_set_handle,
+ MojoHandle handle,
+ MojoHandleSignals signals) {
+ if (UseNewEDK())
+ return MOJO_RESULT_UNIMPLEMENTED;
+ return g_core->AddHandle(wait_set_handle, handle, signals);
+}
+
+MojoResult MojoRemoveHandle(MojoHandle wait_set_handle,
+ MojoHandle handle) {
+ if (UseNewEDK())
+ return MOJO_RESULT_UNIMPLEMENTED;
+ return g_core->RemoveHandle(wait_set_handle, handle);
+}
+
+MojoResult MojoGetReadyHandles(MojoHandle wait_set_handle,
+ uint32_t* count,
+ MojoHandle* handles,
+ MojoResult* results,
+ struct MojoHandleSignalsState *signals_states) {
+ if (UseNewEDK())
+ return MOJO_RESULT_UNIMPLEMENTED;
+ return g_core->GetReadyHandles(wait_set_handle, MakeUserPointer(count),
+ MakeUserPointer(handles),
+ MakeUserPointer(results),
+ MakeUserPointer(signals_states));
+}
+
MojoResult MojoCreateMessagePipe(const MojoCreateMessagePipeOptions* options,
MojoHandle* message_pipe_handle0,
MojoHandle* message_pipe_handle1) {
« no previous file with comments | « third_party/mojo/mojo_public.gyp ('k') | third_party/mojo/src/mojo/edk/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698