Descriptionbase: Make SequencedWorkerPool issue globally unique SequenceTokens.
SequencedWorkerPool currently issues SequenceTokens out of an internal member counter. This means that two different SequencedWorkerPool instances can issue identical SequenceTokens, which mucks up any attempt to distinguish sequences using only SequenceTokens.
This change makes the SequenceTokens issued from an StaticAtomicSequenceNumber, which is globally shared amongst all SequencedWorkerPools.
This change also makes the SequencedWorkerPool included in the nacl_untrusted builds, as it is needed for SequenceChecker and WeakPtr to work correctly. It previously was excluded because it used base/metrics. I've #ifdefed the base/metrics usage out for nacl.
This issue is a spinoff and pre-requisite of issue 18501008: Make WeakPtr use SequenceChecker instead of ThreadChecker.
R=akalin,darin
BUG=165590
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210423
Patch Set 1 #
Total comments: 6
Patch Set 2 : Change CurrentThreadSequenceToken to return a SequenceToken. #
Total comments: 6
Patch Set 3 : Address darin comments #Patch Set 4 : Remove a space #
Total comments: 1
Patch Set 5 : base: SequencedWorkerPool Globally Unique Tokens with unused-variable fix. #
Messages
Total messages: 18 (0 generated)
|