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

Unified Diff: mojo/public/c/system/thunks.cc

Issue 2744943002: Mojo: Move waiting APIs to public library (Closed)
Patch Set: . Created 3 years, 9 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/c/system/thunks.h ('k') | mojo/public/c/system/types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/thunks.cc
diff --git a/mojo/public/c/system/thunks.cc b/mojo/public/c/system/thunks.cc
index 877ab8fe3602746f744be61fe6b63a90ffdf2765..67c568f7d79a8cf47674fc5930a612995a599d78 100644
--- a/mojo/public/c/system/thunks.cc
+++ b/mojo/public/c/system/thunks.cc
@@ -29,25 +29,6 @@ MojoResult MojoQueryHandleSignalsState(
return g_thunks.QueryHandleSignalsState(handle, signals_state);
}
-MojoResult MojoWait(MojoHandle handle,
- MojoHandleSignals signals,
- MojoDeadline deadline,
- struct MojoHandleSignalsState* signals_state) {
- assert(g_thunks.Wait);
- return g_thunks.Wait(handle, signals, deadline, signals_state);
-}
-
-MojoResult MojoWaitMany(const MojoHandle* handles,
- const MojoHandleSignals* signals,
- uint32_t num_handles,
- MojoDeadline deadline,
- uint32_t* result_index,
- struct MojoHandleSignalsState* signals_states) {
- assert(g_thunks.WaitMany);
- return g_thunks.WaitMany(handles, signals, num_handles, deadline,
- result_index, signals_states);
-}
-
MojoResult MojoCreateMessagePipe(const MojoCreateMessagePipeOptions* options,
MojoHandle* message_pipe_handle0,
MojoHandle* message_pipe_handle1) {
@@ -165,33 +146,6 @@ 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);
-}
-
MojoResult MojoCreateWatcher(MojoWatcherCallback callback,
MojoHandle* watcher_handle) {
assert(g_thunks.CreateWatcher);
« no previous file with comments | « mojo/public/c/system/thunks.h ('k') | mojo/public/c/system/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698