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

Unified Diff: mojo/public/platform/nacl/mojo_irt.h

Issue 2106433002: Add thunks for wait set operations, together with public tests. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_wait_set_6-x-work790_wait_set_5.4
Patch Set: doh Created 4 years, 6 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/platform/nacl/libmojo.cc ('k') | mojo/public/platform/native/system_thunks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/nacl/mojo_irt.h
diff --git a/mojo/public/platform/nacl/mojo_irt.h b/mojo/public/platform/nacl/mojo_irt.h
index bc841398953b8887b01e3a98df0455be6ce6c0c3..ad239936733553ed5c45faf67007fb1ad59b837c 100644
--- a/mojo/public/platform/nacl/mojo_irt.h
+++ b/mojo/public/platform/nacl/mojo_irt.h
@@ -11,6 +11,7 @@
#include "mojo/public/c/system/message_pipe.h"
#include "mojo/public/c/system/result.h"
#include "mojo/public/c/system/time.h"
+#include "mojo/public/c/system/wait_set.h"
#define NACL_IRT_MOJO_v0_1 "nacl-irt-mojo-0.1"
@@ -109,6 +110,20 @@ struct nacl_irt_mojo {
void** buffer,
MojoMapBufferFlags flags);
MojoResult (*MojoUnmapBuffer)(void* buffer);
+ MojoResult (*MojoCreateWaitSet)(
+ const struct MojoCreateWaitSetOptions* options,
+ MojoHandle* handle);
+ MojoResult (*MojoWaitSetAdd)(MojoHandle wait_set_handle,
+ MojoHandle handle,
+ MojoHandleSignals signals,
+ uint64_t cookie,
+ const struct MojoWaitSetAddOptions* options);
+ MojoResult (*MojoWaitSetRemove)(MojoHandle wait_set_handle, uint64_t cookie);
+ MojoResult (*MojoWaitSetWait)(MojoHandle wait_set_handle,
+ MojoDeadline deadline,
+ uint32_t* num_results,
+ struct MojoWaitSetResult* results,
+ uint32_t* max_results);
};
#endif // MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_
« no previous file with comments | « mojo/public/platform/nacl/libmojo.cc ('k') | mojo/public/platform/native/system_thunks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698