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

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

Issue 2072353002: Give AwakableList's wake-up method the old state in addition to the new state. (Closed) Base URL: https://github.com/domokit/mojo.git@master
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/simple_dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/simple_dispatcher.cc
diff --git a/mojo/edk/system/simple_dispatcher.cc b/mojo/edk/system/simple_dispatcher.cc
index c3dcd61ebce923009cbaceb2ce1af6449f13ce4a..7624b40f6c62ac1ec568fef29232d19d5eaffbdb 100644
--- a/mojo/edk/system/simple_dispatcher.cc
+++ b/mojo/edk/system/simple_dispatcher.cc
@@ -9,15 +9,15 @@
namespace mojo {
namespace system {
-SimpleDispatcher::SimpleDispatcher() {
-}
+SimpleDispatcher::SimpleDispatcher() {}
-SimpleDispatcher::~SimpleDispatcher() {
-}
+SimpleDispatcher::~SimpleDispatcher() {}
-void SimpleDispatcher::HandleSignalsStateChangedNoLock() {
+void SimpleDispatcher::OnHandleSignalsStateChangeNoLock(
+ const HandleSignalsState& old_state,
+ const HandleSignalsState& new_state) {
mutex().AssertHeld();
- awakable_list_.AwakeForStateChange(GetHandleSignalsStateImplNoLock());
+ awakable_list_.OnStateChange(old_state, new_state);
}
void SimpleDispatcher::CancelAllStateNoLock() {
« no previous file with comments | « mojo/edk/system/simple_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698