Fix flaky PerfettoTaskRunnerTest.SequentialTasks
Reset weak pointers before signaling work is done. Otherwise it will be a race, where the main thread could destruct the factory before the weak pointers get destructed after being dereferenced on the other thread. Bug: 1071409 Change-Id: I8f06592b09bddb325270ef5e09d6c5a1eb2dac19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2159708 Commit-Queue: oysteine <oysteine@chromium.org> Reviewed-by:oysteine <oysteine@chromium.org> Cr-Commit-Position: refs/heads/master@{#762049}
Showing
Please register or sign in to comment