-
robliao authored
The task scheduler lock helps ensure correctness of locks by verifying that we cannot create lock cycles and checking to make sure that the locks acquired match the locks expected to be acquired in DCHECK_IS_ON() builds. The implementation will DCHECK if an unexpected lock is acquired. When DCHECK_IS_ON() is not set, SchedulerLock is a regular lock. This change is a subset of https://codereview.chromium.org/1698183005/ BUG=553459 Review URL: https://codereview.chromium.org/1706123002 Cr-Commit-Position: refs/heads/master@{#381075}
b6f61ce5