X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/91447636331957f3d9b5ca5b508f07c526b0074d..0c530ab8987f0ae6a1a3d9284f40182b88852816:/osfmk/kern/locks.c?ds=inline diff --git a/osfmk/kern/locks.c b/osfmk/kern/locks.c index aa7b65fc8..db2db8142 100644 --- a/osfmk/kern/locks.c +++ b/osfmk/kern/locks.c @@ -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