Descriptioncc: Fix data race in cc::TaskState::IsFinished.
The https://codereview.chromium.org/1866043006/ caused data race, as
the worker and origin threads try to access the Task::state() at the
same time. The member to be accessed on origin thread is now kept
different as it was previously. Now Task::state() is used in worker
thread. It also used in origin thread, when it is safe to be used.
e.g. Task has been processed completely by task graph runner.
BUG=615809, 615340
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/535763c29025109f45c9230ca57e35e535a1175a
Cr-Commit-Position: refs/heads/master@{#396741}
Patch Set 1 #
Total comments: 1
Patch Set 2 : feedback #
Depends on Patchset: Messages
Total messages: 12 (7 generated)
|