DescriptionMake TestSimpleTaskRunner thread-safe.
From task_runner.h:
"Implementations of TaskRunner should be thread-safe in that all
methods must be safe to call on any thread."
The fact that TestSimpleTaskRunner doesn't respect this contract is
confusing. It led to a CL being reverted because it caused a DCHECK
failure inside TestSimpleTaskRunner.
https://codereview.chromium.org/2277333002/
This CL ensures that this won't happen again by making
TestSimpleTaskRunner thread-safe.
BUG=632184
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
Committed: https://crrev.com/980375e38eac6b3669a25a0d5f2a8991f57a4d55
Cr-Commit-Position: refs/heads/master@{#416654}
Patch Set 1 #Patch Set 2 : add missing include, make destructor protected #Patch Set 3 : fix build error #Patch Set 4 : fix test #Patch Set 5 : fix asan error #
Total comments: 3
Messages
Total messages: 39 (26 generated)
|