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

Unified Diff: mojo/edk/system/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/waiter.h ('k') | mojo/edk/system/waiter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/waiter.cc
diff --git a/mojo/edk/system/waiter.cc b/mojo/edk/system/waiter.cc
index 0fc8b6c543d04354834dae5b873f1f1644d3fe7d..1ede9d071b7b6c2166b34e16f7f0ecca1c8bc44b 100644
--- a/mojo/edk/system/waiter.cc
+++ b/mojo/edk/system/waiter.cc
@@ -91,14 +91,16 @@ MojoResult Waiter::Wait(MojoDeadline deadline, uint64_t* context) {
return awake_result_;
}
-bool Waiter::Awake(MojoResult result, uint64_t context) {
+bool Waiter::Awake(uint64_t context,
+ AwakeReason reason,
+ const HandleSignalsState& signals_state) {
MutexLocker locker(&mutex_);
if (awoken_)
return true;
awoken_ = true;
- awake_result_ = result;
+ awake_result_ = MojoResultForAwakeReason(reason);
awake_context_ = context;
cv_.Signal();
// |cv_.Wait()|/|cv_.WaitWithTimeout()| will return after |mutex_| is
« no previous file with comments | « mojo/edk/system/waiter.h ('k') | mojo/edk/system/waiter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698