Chromium Code Reviews
DescriptionEnsure SequencedWorkerPool::Shutdown() blocks for already-started SKIP_ON_SHUTDOWN tasks
SequencedWorkerPool tasks with explicit shutdown behaviours should have the following semantics:
For tasks posted, but not started, before Shutdown is called:
BLOCK_: MUST run
SKIP_: MUST NOT run
CONTINUE_: MUST NOT run
For tasks started, but not completed, when Shutdown is called:
BLOCK_: MUST block Shutdown
SKIP_ MUST block Shutdown
CONTINUE_: MUST NOT block Shutdown
For tasks posted *AFTER* Shutdown is called, for all three cases, the new tasks MUST NOT be run.
BUG=138120
TEST=base_unittests:SequencedWorkerPoolTest.SkipOnShutdown
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147776
Patch Set 1 #Patch Set 2 : Tab -> spaces #
Total comments: 1
Patch Set 3 : Review feedback #
Total comments: 10
Patch Set 4 : More review feedback #Patch Set 5 : Review feedback #Patch Set 6 : Test fix #
Messages
Total messages: 12 (0 generated)
|
|||||||||||||||||||||||||||||||||||||