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

Unified Diff: mojo/system/dispatcher.h

Issue 345463003: Mojo: MojoWaitFlags -> MojoHandleSignals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/system/data_pipe_producer_dispatcher.cc ('k') | mojo/system/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/dispatcher.h
diff --git a/mojo/system/dispatcher.h b/mojo/system/dispatcher.h
index 2679ac2fdeaad5b4224d30abea22a62c8bdba3bf..051e2bc2e9b307df737b87a6180b9d7b63250818 100644
--- a/mojo/system/dispatcher.h
+++ b/mojo/system/dispatcher.h
@@ -117,17 +117,19 @@ class MOJO_SYSTEM_IMPL_EXPORT Dispatcher :
scoped_ptr<RawSharedBufferMapping>* mapping);
// Adds a waiter to this dispatcher. The waiter will be woken up when this
- // object changes state to satisfy |flags| with context |context|. It will
+ // object changes state to satisfy |signals| with context |context|. It will
// also be woken up when it becomes impossible for the object to ever satisfy
- // |flags| with a suitable error status.
+ // |signals| with a suitable error status.
//
// Returns:
// - |MOJO_RESULT_OK| if the waiter was added;
- // - |MOJO_RESULT_ALREADY_EXISTS| if |flags| is already satisfied;
+ // - |MOJO_RESULT_ALREADY_EXISTS| if |signals| is already satisfied;
// - |MOJO_RESULT_INVALID_ARGUMENT| if the dispatcher has been closed; and
// - |MOJO_RESULT_FAILED_PRECONDITION| if it is not (or no longer) possible
- // that |flags| will ever be satisfied.
- MojoResult AddWaiter(Waiter* waiter, MojoWaitFlags flags, uint32_t context);
+ // that |signals| will ever be satisfied.
+ MojoResult AddWaiter(Waiter* waiter,
+ MojoHandleSignals signals,
+ uint32_t context);
void RemoveWaiter(Waiter* waiter);
// A dispatcher must be put into a special state in order to be sent across a
@@ -242,7 +244,7 @@ class MOJO_SYSTEM_IMPL_EXPORT Dispatcher :
MojoMapBufferFlags flags,
scoped_ptr<RawSharedBufferMapping>* mapping);
virtual MojoResult AddWaiterImplNoLock(Waiter* waiter,
- MojoWaitFlags flags,
+ MojoHandleSignals signals,
uint32_t context);
virtual void RemoveWaiterImplNoLock(Waiter* waiter);
« no previous file with comments | « mojo/system/data_pipe_producer_dispatcher.cc ('k') | mojo/system/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698