]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/locks.c
xnu-792.25.20.tar.gz
[apple/xnu.git] / osfmk / kern / locks.c
index aa7b65fc80732347b7de8f2589e56425e10eff49..db2db8142def3d3cc98b73509f124dde7fb87133 100644 (file)
@@ -347,6 +347,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
  */
@@ -1035,7 +1046,7 @@ unsigned int
 usimple_lock_try_EXT(
        lck_spin_t              *lock)
 {
-       lck_spin_try_lock(lock);
+       return(lck_spin_try_lock(lock));
 }
 
 void