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

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

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/nacl/mojo_irt.h ('k') | mojo/public/platform/native/system_thunks.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/system_thunks.h
diff --git a/mojo/public/platform/native/system_thunks.h b/mojo/public/platform/native/system_thunks.h
index 03f2ccbe91b7d2918aaadce9e637d2c6c92df0bb..92260c71252ed2812c1ade608f8d848c7fe0185f 100644
--- a/mojo/public/platform/native/system_thunks.h
+++ b/mojo/public/platform/native/system_thunks.h
@@ -16,6 +16,7 @@
#include "mojo/public/c/system/result.h"
#include "mojo/public/c/system/time.h"
#include "mojo/public/c/system/wait.h"
+#include "mojo/public/c/system/wait_set.h"
// The embedder needs to bind the basic Mojo Core functions of a DSO to those of
// the embedder when loading a DSO that is dependent on mojo_system.
@@ -136,10 +137,22 @@ struct MojoSystemThunks {
MojoHandle handle,
MojoHandleRights rights_to_remove,
MojoHandle* replacement_handle);
+ MojoResult (*CreateWaitSet)(const struct MojoCreateWaitSetOptions* options,
+ MojoHandle* handle);
+ MojoResult (*WaitSetAdd)(MojoHandle wait_set_handle,
+ MojoHandle handle,
+ MojoHandleSignals signals,
+ uint64_t cookie,
+ const struct MojoWaitSetAddOptions* options);
+ MojoResult (*WaitSetRemove)(MojoHandle wait_set_handle, uint64_t cookie);
+ MojoResult (*WaitSetWait)(MojoHandle wait_set_handle,
+ MojoDeadline deadline,
+ uint32_t* num_results,
+ struct MojoWaitSetResult* results,
+ uint32_t* max_results);
};
#pragma pack(pop)
-
#ifdef __cplusplus
// Intended to be called from the embedder. Returns a |MojoCore| initialized
// to contain pointers to each of the embedder's MojoCore functions.
@@ -173,6 +186,10 @@ inline MojoSystemThunks MojoMakeSystemThunks() {
MojoDuplicateHandleWithReducedRights,
MojoDuplicateHandle,
MojoReplaceHandleWithReducedRights,
+ MojoCreateWaitSet,
+ MojoWaitSetAdd,
+ MojoWaitSetRemove,
+ MojoWaitSetWait,
};
return system_thunks;
}
« no previous file with comments | « mojo/public/platform/nacl/mojo_irt.h ('k') | mojo/public/platform/native/system_thunks.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698