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

Unified Diff: mojo/public/platform/native/system_thunks.c

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 | « mojo/public/platform/native/system_thunks.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/system_thunks.c
diff --git a/mojo/public/platform/native/system_thunks.c b/mojo/public/platform/native/system_thunks.c
index c9517ffee4b2aca19155644f96d592db9e211caf..2223c5c475148f425b898fee83347857c59764b1 100644
--- a/mojo/public/platform/native/system_thunks.c
+++ b/mojo/public/platform/native/system_thunks.c
@@ -226,6 +226,36 @@ MojoResult MojoUnmapBuffer(void* buffer) {
return g_thunks.UnmapBuffer(buffer);
}
+MojoResult MojoCreateWaitSet(const struct MojoCreateWaitSetOptions* options,
+ MojoHandle* handle) {
+ assert(g_thunks.CreateWaitSet);
+ return g_thunks.CreateWaitSet(options, handle);
+}
+
+MojoResult MojoWaitSetAdd(MojoHandle wait_set_handle,
+ MojoHandle handle,
+ MojoHandleSignals signals,
+ uint64_t cookie,
+ const struct MojoWaitSetAddOptions* options) {
+ assert(g_thunks.WaitSetAdd);
+ return g_thunks.WaitSetAdd(wait_set_handle, handle, signals, cookie, options);
+}
+
+MojoResult MojoWaitSetRemove(MojoHandle wait_set_handle, uint64_t cookie) {
+ assert(g_thunks.WaitSetRemove);
+ return g_thunks.WaitSetRemove(wait_set_handle, cookie);
+}
+
+MojoResult MojoWaitSetWait(MojoHandle wait_set_handle,
+ MojoDeadline deadline,
+ uint32_t* num_results,
+ struct MojoWaitSetResult* results,
+ uint32_t* max_results) {
+ assert(g_thunks.WaitSetWait);
+ return g_thunks.WaitSetWait(wait_set_handle, deadline, num_results, results,
+ max_results);
+}
+
THUNK_EXPORT size_t
MojoSetSystemThunks(const struct MojoSystemThunks* system_thunks) {
if (system_thunks->size >= sizeof(g_thunks))
« no previous file with comments | « mojo/public/platform/native/system_thunks.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698