Add PTHREAD_PRIO_INHERIT to POSIX Locks |
||
Issue descriptionThe Browser Task Scheduler will be using thread priorities. PTHREAD_PRIO_INHERIT will help avoid priority inversion with the use of thread priorities.
,
Aug 4 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d84dc069a147eb0209b9f7713beafb3de0dec26b commit d84dc069a147eb0209b9f7713beafb3de0dec26b Author: fdoray <fdoray@chromium.org> Date: Thu Aug 04 20:36:26 2016 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} [modify] https://crrev.com/d84dc069a147eb0209b9f7713beafb3de0dec26b/base/synchronization/lock.h
,
Aug 9 2016
Works as much as possible (i.e. on Mac -- see PriorityInheritanceAvailable() for details). |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Aug 1 2016