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

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

Issue 1461213002: WaitSet implementation for old EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-waitset-skeleton
Patch Set: Fix windows build and style issues. 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/public/platform/native/system_thunks.h ('k') | third_party/mojo/mojo_edk_system_impl.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/system_thunks.cc
diff --git a/mojo/public/platform/native/system_thunks.cc b/mojo/public/platform/native/system_thunks.cc
index ed3227f0dd27445d000f90a78bcc6fbe90fbcb10..74aaa0808c4b899deadd4e14751d13a775cb3aa0 100644
--- a/mojo/public/platform/native/system_thunks.cc
+++ b/mojo/public/platform/native/system_thunks.cc
@@ -158,6 +158,33 @@ MojoResult MojoUnmapBuffer(void* buffer) {
return g_thunks.UnmapBuffer(buffer);
}
+MojoResult MojoCreateWaitSet(MojoHandle* wait_set) {
+ assert(g_thunks.CreateWaitSet);
+ return g_thunks.CreateWaitSet(wait_set);
+}
+
+MojoResult MojoAddHandle(MojoHandle wait_set,
+ MojoHandle handle,
+ MojoHandleSignals signals) {
+ assert(g_thunks.AddHandle);
+ return g_thunks.AddHandle(wait_set, handle, signals);
+}
+
+MojoResult MojoRemoveHandle(MojoHandle wait_set, MojoHandle handle) {
+ assert(g_thunks.RemoveHandle);
+ return g_thunks.RemoveHandle(wait_set, handle);
+}
+
+MojoResult MojoGetReadyHandles(MojoHandle wait_set,
+ uint32_t* count,
+ MojoHandle* handles,
+ MojoResult* results,
+ struct MojoHandleSignalsState* signals_states) {
+ assert(g_thunks.GetReadyHandles);
+ return g_thunks.GetReadyHandles(wait_set, count, handles, results,
+ signals_states);
+}
+
extern "C" THUNK_EXPORT size_t MojoSetSystemThunks(
const MojoSystemThunks* system_thunks) {
if (system_thunks->size >= sizeof(g_thunks))
« no previous file with comments | « mojo/public/platform/native/system_thunks.h ('k') | third_party/mojo/mojo_edk_system_impl.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698