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

Unified Diff: third_party/mojo/src/mojo/edk/system/core.cc

Issue 1429553002: API definition for WaitSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years 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 | « third_party/mojo/src/mojo/edk/system/core.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mojo/src/mojo/edk/system/core.cc
diff --git a/third_party/mojo/src/mojo/edk/system/core.cc b/third_party/mojo/src/mojo/edk/system/core.cc
index e1e6ec9a76c1babfa93b03788cbafed07ab97680..d82c845bfa497c29561470d00c2e06b746825eab 100644
--- a/third_party/mojo/src/mojo/edk/system/core.cc
+++ b/third_party/mojo/src/mojo/edk/system/core.cc
@@ -185,6 +185,56 @@ MojoResult Core::WaitMany(UserPointer<const MojoHandle> handles,
return rv;
}
+MojoResult Core::CreateWaitSet(UserPointer<MojoHandle> wait_set_handle) {
+ if (wait_set_handle.IsNull())
+ return MOJO_RESULT_INVALID_ARGUMENT;
+
+ return MOJO_RESULT_UNIMPLEMENTED;
+}
+
+MojoResult Core::AddHandle(MojoHandle wait_set_handle,
+ MojoHandle handle,
+ MojoHandleSignals signals) {
+ scoped_refptr<Dispatcher> wait_set_dispatcher(GetDispatcher(wait_set_handle));
+ if (!wait_set_dispatcher)
+ return MOJO_RESULT_INVALID_ARGUMENT;
+
+ scoped_refptr<Dispatcher> dispatcher(GetDispatcher(handle));
+ if (!dispatcher)
+ return MOJO_RESULT_INVALID_ARGUMENT;
+
+ return MOJO_RESULT_UNIMPLEMENTED;
+}
+
+MojoResult Core::RemoveHandle(MojoHandle wait_set_handle,
+ MojoHandle handle) {
+ scoped_refptr<Dispatcher> wait_set_dispatcher(GetDispatcher(wait_set_handle));
+ if (!wait_set_dispatcher)
+ return MOJO_RESULT_INVALID_ARGUMENT;
+
+ scoped_refptr<Dispatcher> dispatcher(GetDispatcher(handle));
+ if (!dispatcher)
+ return MOJO_RESULT_INVALID_ARGUMENT;
+
+ return MOJO_RESULT_UNIMPLEMENTED;
+}
+
+MojoResult Core::GetReadyHandles(
+ MojoHandle wait_set_handle,
+ UserPointer<uint32_t> count,
+ UserPointer<MojoHandle> handles,
+ UserPointer<MojoResult> results,
+ UserPointer<MojoHandleSignalsState> signals_states) {
+ scoped_refptr<Dispatcher> wait_set_dispatcher(GetDispatcher(wait_set_handle));
+ if (!wait_set_dispatcher)
+ return MOJO_RESULT_INVALID_ARGUMENT;
+
+ if (count.IsNull() || !count.Get() || handles.IsNull() || results.IsNull())
+ return MOJO_RESULT_INVALID_ARGUMENT;
+
+ return MOJO_RESULT_UNIMPLEMENTED;
+}
+
MojoResult Core::CreateMessagePipe(
UserPointer<const MojoCreateMessagePipeOptions> options,
UserPointer<MojoHandle> message_pipe_handle0,
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/core.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698