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

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

Issue 2106433002: Add thunks for wait set operations, together with public tests. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_wait_set_6-x-work790_wait_set_5.4
Patch Set: doh Created 4 years, 6 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
« no previous file with comments | « no previous file | mojo/nacl/nonsfi/irt_mojo_nonsfi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/entrypoints.cc
diff --git a/mojo/edk/embedder/entrypoints.cc b/mojo/edk/embedder/entrypoints.cc
index c636e440d1f8c6276adbcb379a10aec3c71eff95..7f29a5cd25fc27a08559f3f596f99d9e73c7ff2a 100644
--- a/mojo/edk/embedder/entrypoints.cc
+++ b/mojo/edk/embedder/entrypoints.cc
@@ -218,4 +218,33 @@ MojoResult MojoUnmapBuffer(void* buffer) {
return g_core->UnmapBuffer(MakeUserPointer(buffer));
}
+MojoResult MojoCreateWaitSet(const struct MojoCreateWaitSetOptions* options,
+ MojoHandle* handle) {
+ return g_core->CreateWaitSet(MakeUserPointer(options),
+ MakeUserPointer(handle));
+}
+
+MojoResult MojoWaitSetAdd(MojoHandle wait_set_handle,
+ MojoHandle handle,
+ MojoHandleSignals signals,
+ uint64_t cookie,
+ const struct MojoWaitSetAddOptions* options) {
+ return g_core->WaitSetAdd(wait_set_handle, handle, signals, cookie,
+ MakeUserPointer(options));
+}
+
+MojoResult MojoWaitSetRemove(MojoHandle wait_set_handle, uint64_t cookie) {
+ return g_core->WaitSetRemove(wait_set_handle, cookie);
+}
+
+MojoResult MojoWaitSetWait(MojoHandle wait_set_handle,
+ MojoDeadline deadline,
+ uint32_t* num_results,
+ struct MojoWaitSetResult* results,
+ uint32_t* max_results) {
+ return g_core->WaitSetWait(
+ wait_set_handle, deadline, MakeUserPointer(num_results),
+ MakeUserPointer(results), MakeUserPointer(max_results));
+}
+
} // extern "C"
« no previous file with comments | « no previous file | mojo/nacl/nonsfi/irt_mojo_nonsfi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698