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

Unified Diff: mojo/edk/system/dispatcher.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 | « mojo/edk/system/core_unittest.cc ('k') | mojo/edk/system/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/dispatcher.h
diff --git a/mojo/edk/system/dispatcher.h b/mojo/edk/system/dispatcher.h
index 4ae4720cf040b4f7317f541ae0afa101d8771c72..58f3d8f09ff307233fd9eca5bf0ba709b3d897a8 100644
--- a/mojo/edk/system/dispatcher.h
+++ b/mojo/edk/system/dispatcher.h
@@ -170,10 +170,10 @@ class Dispatcher : public util::RefCountedThreadSafe<Dispatcher> {
std::unique_ptr<platform::PlatformSharedBufferMapping>* mapping);
// |EntrypointClass::WAIT_SET|:
- MojoResult WaitSetAdd(UserPointer<const MojoWaitSetAddOptions> options,
- util::RefPtr<Dispatcher>&& dispatcher,
+ MojoResult WaitSetAdd(util::RefPtr<Dispatcher>&& dispatcher,
MojoHandleSignals signals,
- uint64_t cookie);
+ uint64_t cookie,
+ UserPointer<const MojoWaitSetAddOptions> options);
MojoResult WaitSetRemove(uint64_t cookie);
// Note: This will likely block the calling thread (so, e.g., no mutexes
// should be held when it's called).
@@ -387,10 +387,10 @@ class Dispatcher : public util::RefCountedThreadSafe<Dispatcher> {
// lock |mutex()| and check |is_closed_no_lock()| (returning
// |MOJO_RESULT_INVALID_ARGUMENT| if it is true).
virtual MojoResult WaitSetAddImpl(
- UserPointer<const MojoWaitSetAddOptions> options,
util::RefPtr<Dispatcher>&& dispatcher,
MojoHandleSignals signals,
- uint64_t cookie);
+ uint64_t cookie,
+ UserPointer<const MojoWaitSetAddOptions> options);
virtual MojoResult WaitSetRemoveImpl(uint64_t cookie);
virtual MojoResult WaitSetWaitImpl(MojoDeadline deadline,
UserPointer<uint32_t> num_results,
« no previous file with comments | « mojo/edk/system/core_unittest.cc ('k') | mojo/edk/system/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698