Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Lock::HandlesMultipleThreadPriorities().
This static method is available on all platform. It replaces Lock::PriorityInheritanceAvailable(). It will simplify code that checks whether priority inversion will be mitigated when Lock is used from different thread priorities. E.g.: if (Lock::Lock::PriorityInheritanceAvailable()) PlatformThread::SetCurrentThreadPriority(...); Becomes: if (Lock::HandlesMultipleThreadPriorities()) PlatformThread::SetCurrentThreadPriority(...); BUG=611856 Review-Url: https://codereview.chromium.org/2206263002 Cr-Commit-Position: refs/heads/master@{#409890}
- Loading branch information