Index: mojo/edk/embedder/entrypoints.cc |
diff --git a/mojo/edk/embedder/entrypoints.cc b/mojo/edk/embedder/entrypoints.cc |
index 7b2e53fe29ad078db19b6a7d12bf23e76dfdc7ce..6ecdd1475b96e9fcd551a01945dc51169ca54cd1 100644 |
--- a/mojo/edk/embedder/entrypoints.cc |
+++ b/mojo/edk/embedder/entrypoints.cc |
@@ -41,6 +41,25 @@ MojoResult MojoWaitMany(const MojoHandle* handles, |
: result; |
} |
+MojoResult MojoNewWait(MojoHandle handle, |
+ MojoHandleSignals signals, |
+ MojoDeadline deadline, |
+ MojoHandleSignalsState* signals_state) { |
+ return g_core->Wait(handle, signals, deadline, |
+ MakeUserPointer(signals_state)); |
+} |
+ |
+MojoResult MojoNewWaitMany(const MojoHandle* handles, |
+ const MojoHandleSignals* signals, |
+ uint32_t num_handles, |
+ MojoDeadline deadline, |
+ uint32_t* result_index, |
+ MojoHandleSignalsState* signals_states) { |
+ return g_core->WaitMany(MakeUserPointer(handles), MakeUserPointer(signals), |
+ num_handles, deadline, MakeUserPointer(result_index), |
+ MakeUserPointer(signals_states)); |
+} |
+ |
MojoResult MojoCreateMessagePipe(const MojoCreateMessagePipeOptions* options, |
MojoHandle* message_pipe_handle0, |
MojoHandle* message_pipe_handle1) { |