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

Unified Diff: base/timer/timer.h

Issue 2916693002: DetachFromSequence in Timer::Stop() (Closed)
Patch Set: comment nit Created 3 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 | « no previous file | base/timer/timer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/timer/timer.h
diff --git a/base/timer/timer.h b/base/timer/timer.h
index 88958d4ad65a3abef8976483d758014e097b8b82..651ba39d9137d2a3814fe6859d6dce953aef994e 100644
--- a/base/timer/timer.h
+++ b/base/timer/timer.h
@@ -203,7 +203,8 @@ class BASE_EXPORT Timer {
TimeTicks desired_run_time_;
// Timer isn't thread-safe and must only be used on its origin sequence
- // (sequence on which it was started).
+ // (sequence on which it was started). Once fully Stop()'ed it may be
+ // destroyed or restarted on another sequence.
SequenceChecker origin_sequence_checker_;
// Repeating timers automatically post the task again before calling the task
« no previous file with comments | « no previous file | base/timer/timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698