DescriptionRename CancellationFlag to AtomicFlag.
CancellationFlag is really just a flag that can be set once from
one thread and read from a number of other threads. It is already
used to express other things than cancellation (e.g. in
after_startup_task_utils.cc) and could be used at a few places
in base/task_scheduler instead of WaitableEvent.
BUG=553459
Committed: https://crrev.com/ef191122f44b4d41a71c573bf785f6e1f68f4dfb
Cr-Commit-Position: refs/heads/master@{#407475}
Patch Set 1 #Patch Set 2 : self-review (remove unused includes) #
Total comments: 14
Patch Set 3 : CR danakj #3 #
Total comments: 6
Patch Set 4 : CR gab #5 #
Total comments: 2
Patch Set 5 : CR gab #8 (sleep before Set()) #
Total comments: 2
Patch Set 6 : CR danakj #11 (add comment about Thread's destructor in unit test) #Patch Set 7 : restore task_tracker_unitttest.cc to make tests pass #Patch Set 8 : fix dcheck death test #
Messages
Total messages: 30 (12 generated)
|