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

Unified Diff: mojo/edk/system/core.h

Issue 2100553002: Add Core methods for wait set. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_wait_set_5.4
Patch Set: 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 | « no previous file | mojo/edk/system/core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/core.h
diff --git a/mojo/edk/system/core.h b/mojo/edk/system/core.h
index e5d5f808dc840e65591677591753244721f62085..df4adb5ca70cd514ad2f730368b46aef2e194751 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -23,6 +23,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"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
@@ -219,6 +220,22 @@ class Core {
MojoMapBufferFlags flags);
MojoResult UnmapBuffer(UserPointer<void> buffer);
+ // These methods correspond to the API functions defined in
+ // "mojo/public/c/system/wait_set.h":
+ MojoResult CreateWaitSet(UserPointer<const MojoCreateWaitSetOptions> options,
+ UserPointer<MojoHandle> wait_set_handle);
+ MojoResult WaitSetAdd(MojoHandle wait_set_handle,
+ MojoHandle handle,
+ MojoHandleSignals signals,
+ uint64_t cookie,
+ UserPointer<const MojoWaitSetAddOptions> options);
+ MojoResult WaitSetRemove(MojoHandle wait_set_handle, uint64_t cookie);
+ MojoResult WaitSetWait(MojoHandle wait_set_handle,
+ MojoDeadline deadline,
+ UserPointer<uint32_t> num_results,
+ UserPointer<MojoWaitSetResult> results,
+ UserPointer<uint32_t> max_results);
+
private:
friend bool internal::ShutdownCheckNoLeaks(Core*);
« no previous file with comments | « no previous file | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698