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

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

Issue 2090763002: AwakableList: For persistent awakables, make Add() call Awake() with reason INITIALIZE. (Closed) Base URL: https://github.com/domokit/mojo.git@work795_wait_set_4.7-x-work794_wait_set_4.6
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/awakable.h ('k') | mojo/edk/system/awakable_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/awakable.cc
diff --git a/mojo/edk/system/awakable.cc b/mojo/edk/system/awakable.cc
index 39539dd0cc08781dba9b4642cec1d28c293dca95..7401e2fcad88622a78f98e29c8edb916319a64b1 100644
--- a/mojo/edk/system/awakable.cc
+++ b/mojo/edk/system/awakable.cc
@@ -12,12 +12,14 @@ namespace system {
// static
MojoResult Awakable::MojoResultForAwakeReason(AwakeReason reason) {
switch (reason) {
+ case AwakeReason::CANCELLED:
+ return MOJO_RESULT_CANCELLED;
case AwakeReason::SATISFIED:
return MOJO_RESULT_OK;
case AwakeReason::UNSATISFIABLE:
return MOJO_RESULT_FAILED_PRECONDITION;
- case AwakeReason::CANCELLED:
- return MOJO_RESULT_CANCELLED;
+ case AwakeReason::INITIALIZE:
+ break;
case AwakeReason::CHANGED:
break;
}
« no previous file with comments | « mojo/edk/system/awakable.h ('k') | mojo/edk/system/awakable_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698