Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Unified Diff: base/synchronization/lock.h

Issue 2178503003: Add PTHREAD_PRIO_INHERIT Locks for Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust Macro Location Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/synchronization/lock_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/lock.h
diff --git a/base/synchronization/lock.h b/base/synchronization/lock.h
index fbf6cef76911c80332da1524beeb23fd14737917..c2680cbcc8a145be5ce3556a76e071e595997d7a 100644
--- a/base/synchronization/lock.h
+++ b/base/synchronization/lock.h
@@ -61,6 +61,14 @@ class BASE_EXPORT Lock {
void AssertAcquired() const;
#endif // DCHECK_IS_ON()
+#if defined(OS_POSIX)
+ // Whether this platform has priority inheritance available. All locks will
+ // attempt to use the priority inheritance version if available.
+ static bool PriorityInheritanceAvailable() {
+ return internal::LockImpl::PriorityInheritanceAvailable();
+ }
+#endif
+
#if defined(OS_POSIX) || defined(OS_WIN)
// Both Windows and POSIX implementations of ConditionVariable need to be
// able to see our lock and tweak our debugging counters, as they release and
« no previous file with comments | « no previous file | base/synchronization/lock_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698