diff options
author | amistry <amistry@chromium.org> | 2015-12-09 23:29:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-10 07:29:54 +0000 |
commit | 428364d72b6ccf283fff9ce0c9ea58dac3805615 (patch) | |
tree | 436c6f07d190b82bc901cd5543209aa6e24306e3 /mojo/public/platform/native/system_thunks.cc | |
parent | a9c213e88b8f2df057b249e1e6734d10e6d5825d (diff) | |
download | chromium_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.cc | 27 |
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)) |