summaryrefslogtreecommitdiffstats
path: root/mojo/public/platform/native/system_thunks.cc
diff options
context:
space:
mode:
authoramistry <amistry@chromium.org>2015-12-09 23:29:03 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-10 07:29:54 +0000
commit428364d72b6ccf283fff9ce0c9ea58dac3805615 (patch)
tree436c6f07d190b82bc901cd5543209aa6e24306e3 /mojo/public/platform/native/system_thunks.cc
parenta9c213e88b8f2df057b249e1e6734d10e6d5825d (diff)
downloadchromium_src-428364d72b6ccf283fff9ce0c9ea58dac3805615.zip
chromium_src-428364d72b6ccf283fff9ce0c9ea58dac3805615.tar.gz
chromium_src-428364d72b6ccf283fff9ce0c9ea58dac3805615.tar.bz2
WaitSet implementation for old EDK.
BUG=556865 Review URL: https://codereview.chromium.org/1461213002 Cr-Commit-Position: refs/heads/master@{#364309}
Diffstat (limited to 'mojo/public/platform/native/system_thunks.cc')
-rw-r--r--mojo/public/platform/native/system_thunks.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/mojo/public/platform/native/system_thunks.cc b/mojo/public/platform/native/system_thunks.cc
index ed3227f..74aaa08 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))