mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 05:36:10 +00:00
libthr: move __always_inline to canonical position
Ahead of including inline in __always_inline, move __always_inline to where inline goes. Reviewed by: imp, kib, olce Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D45710
This commit is contained in:
parent
eae1767d8f
commit
012e32c665
|
@ -59,7 +59,7 @@ __weak_reference(_pthread_rwlock_timedwrlock, pthread_rwlock_timedwrlock);
|
|||
static int init_static(struct pthread *thread, pthread_rwlock_t *rwlock);
|
||||
static int init_rwlock(pthread_rwlock_t *rwlock, pthread_rwlock_t *rwlock_out);
|
||||
|
||||
static int __always_inline
|
||||
static __always_inline int
|
||||
check_and_init_rwlock(pthread_rwlock_t *rwlock, pthread_rwlock_t *rwlock_out)
|
||||
{
|
||||
if (__predict_false(*rwlock == THR_PSHARED_PTR ||
|
||||
|
|
Loading…
Reference in a new issue