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

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

Issue 2084593005: Rationalize AddAwakable...() and RemoveAwakable...() methods. (Closed) Base URL: https://github.com/domokit/mojo.git@master
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/edk/system/remote_message_pipe_unittest.cc ('k') | mojo/edk/system/simple_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/simple_dispatcher.h
diff --git a/mojo/edk/system/simple_dispatcher.h b/mojo/edk/system/simple_dispatcher.h
index 95942cfa0f6c1e8903f711b85a705232f67a4104..eecbf40576d19fe82220b7bb2bec7b00f5df3f1c 100644
--- a/mojo/edk/system/simple_dispatcher.h
+++ b/mojo/edk/system/simple_dispatcher.h
@@ -33,16 +33,14 @@ class SimpleDispatcher : public Dispatcher {
// |Dispatcher| protected methods:
void CancelAllStateNoLock() override;
MojoResult AddAwakableImplNoLock(Awakable* awakable,
- MojoHandleSignals signals,
- bool force,
uint64_t context,
+ bool force,
+ MojoHandleSignals signals,
HandleSignalsState* signals_state) override;
- void RemoveAwakableImplNoLock(Awakable* awakable,
+ void RemoveAwakableImplNoLock(bool match_context,
+ Awakable* awakable,
+ uint64_t context,
HandleSignalsState* signals_state) override;
- void RemoveAwakableWithContextImplNoLock(
- Awakable* awakable,
- uint64_t context,
- HandleSignalsState* signals_state) override;
private:
AwakableList awakable_list_ MOJO_GUARDED_BY(mutex());
« no previous file with comments | « mojo/edk/system/remote_message_pipe_unittest.cc ('k') | mojo/edk/system/simple_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698