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

Unified Diff: update_attempter.h

Issue 4191002: AU: Nice for 2 hours, then normal priority. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Created 10 years, 2 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 | « no previous file | update_attempter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_attempter.h
diff --git a/update_attempter.h b/update_attempter.h
index db05c7b43f359d3bc607bf61634fabdf369dbfb8..3a4ff49960b1b2bbc98a007b2b50d7e2fc4caa3a 100644
--- a/update_attempter.h
+++ b/update_attempter.h
@@ -134,18 +134,15 @@ class UpdateAttempter : public ActionProcessorDelegate,
// returns.
void SetPriority(utils::ProcessPriority priority);
- // Set the process priority to low and sets up timeout events to increase the
- // priority gradually to high.
+ // Sets the process priority to low and sets up timeout events to increase it.
void SetupPriorityManagement();
// Resets the process priority to normal and destroys any scheduled timeout
// sources.
void CleanupPriorityManagement();
- // The process priority timeout source callback increases the current priority
- // by one step (low goes to normal, normal goes to high). Returns true if the
- // callback must be invoked again after a timeout, or false if GLib can
- // destroy this timeout source.
+ // The process priority timeout source callback sets the current priority to
+ // normal. Returns false so that GLib destroys the timeout source.
static gboolean StaticManagePriorityCallback(gpointer data);
bool ManagePriorityCallback();
« no previous file with comments | « no previous file | update_attempter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698