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

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: Update API. 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 bc53093b64fe84bfa85067e489d9369dcbad755f..e7d0fc5c35e91ea84bbe21085c7aae615aed51bf 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