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

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

Issue 2076263003: Plumb the handle signals state to Awakable::Awake(). (Closed) Base URL: https://github.com/domokit/mojo.git@work794_wait_set_4.2
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/async_waiter.h ('k') | mojo/edk/system/awakable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/async_waiter.cc
diff --git a/mojo/edk/system/async_waiter.cc b/mojo/edk/system/async_waiter.cc
index 57c5e25236284a56739222f0b1026a818b4f687e..15122a367c05f003befdc1dbc1fe6c90f7177bc4 100644
--- a/mojo/edk/system/async_waiter.cc
+++ b/mojo/edk/system/async_waiter.cc
@@ -11,8 +11,10 @@ AsyncWaiter::AsyncWaiter(const AwakeCallback& callback) : callback_(callback) {}
AsyncWaiter::~AsyncWaiter() {}
-bool AsyncWaiter::Awake(MojoResult result, uint64_t /*context*/) {
- callback_(result);
+bool AsyncWaiter::Awake(uint64_t /*context*/,
+ AwakeReason reason,
+ const HandleSignalsState& /*signals_state*/) {
+ callback_(MojoResultForAwakeReason(reason));
delete this;
return false;
}
« no previous file with comments | « mojo/edk/system/async_waiter.h ('k') | mojo/edk/system/awakable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698