]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/locks.c
xnu-792.18.15.tar.gz
[apple/xnu.git] / osfmk / kern / locks.c
index 7acaf47b6c71f7b7a36c7b5428422e073b75bec8..47f39aafbb5a1ffe6b7b44fc8f3dad693deb1ac4 100644 (file)
@@ -353,6 +353,17 @@ lck_attr_setdebug(
 }
 
 
+/*
+ * Routine:    lck_attr_rw_shared_priority
+ */
+void
+lck_attr_rw_shared_priority(
+       lck_attr_t      *attr)
+{
+       (void)hw_atomic_or((uint32_t *)&attr->lck_attr_val, LCK_ATTR_RW_SHARED_PRIORITY);
+}
+
+
 /*
  * Routine:    lck_attr_free
  */
@@ -1041,7 +1052,7 @@ unsigned int
 usimple_lock_try_EXT(
        lck_spin_t              *lock)
 {
-       lck_spin_try_lock(lock);
+       return(lck_spin_try_lock(lock));
 }
 
 void