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

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

Issue 1504733002: Implementation of WaitSet for new EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-waitset-implementation
Patch Set: Add gyp rules. 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 | « mojo/mojo_edk_tests.gyp ('k') | no next file » | 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 f6e7de503bac683b715758bef782997e675570a8..cb24016a5ab59b535266b00c0ca7370edefebbdc 100644
--- a/third_party/mojo/src/mojo/edk/embedder/entrypoints.cc
+++ b/third_party/mojo/src/mojo/edk/embedder/entrypoints.cc
@@ -68,7 +68,7 @@ MojoResult MojoWaitMany(const MojoHandle* handles,
MojoResult MojoCreateWaitSet(MojoHandle* wait_set_handle) {
if (UseNewEDK())
- return MOJO_RESULT_UNIMPLEMENTED;
+ return mojo::edk::internal::g_core->CreateWaitSet(wait_set_handle);
return g_core->CreateWaitSet(MakeUserPointer(wait_set_handle));
}
@@ -76,14 +76,15 @@ MojoResult MojoAddHandle(MojoHandle wait_set_handle,
MojoHandle handle,
MojoHandleSignals signals) {
if (UseNewEDK())
- return MOJO_RESULT_UNIMPLEMENTED;
+ return mojo::edk::internal::g_core->AddHandle(wait_set_handle, handle,
+ signals);
return g_core->AddHandle(wait_set_handle, handle, signals);
}
MojoResult MojoRemoveHandle(MojoHandle wait_set_handle,
MojoHandle handle) {
if (UseNewEDK())
- return MOJO_RESULT_UNIMPLEMENTED;
+ return mojo::edk::internal::g_core->RemoveHandle(wait_set_handle, handle);
return g_core->RemoveHandle(wait_set_handle, handle);
}
@@ -93,7 +94,8 @@ MojoResult MojoGetReadyHandles(MojoHandle wait_set_handle,
MojoResult* results,
struct MojoHandleSignalsState *signals_states) {
if (UseNewEDK())
- return MOJO_RESULT_UNIMPLEMENTED;
+ return mojo::edk::internal::g_core->GetReadyHandles(
+ wait_set_handle, count, handles, results, signals_states);
return g_core->GetReadyHandles(wait_set_handle, MakeUserPointer(count),
MakeUserPointer(handles),
MakeUserPointer(results),
« no previous file with comments | « mojo/mojo_edk_tests.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698