/sysdeps/mach/htl/bits/ |
A D | spin-lock-inline.h | 42 __pthread_spin_destroy (__pthread_spinlock_t *__lock) in __pthread_spin_destroy() argument 51 __pthread_spin_init (__pthread_spinlock_t *__lock, int __pshared) in __pthread_spin_init() argument 53 *__lock = __PTHREAD_SPIN_LOCK_INITIALIZER; in __pthread_spin_init() 60 __pthread_spin_trylock (__pthread_spinlock_t *__lock) in __pthread_spin_trylock() argument 62 return __spin_try_lock ((__spin_lock_t *) __lock) ? 0 : __EBUSY; in __pthread_spin_trylock() 68 __pthread_spin_lock (__pthread_spinlock_t *__lock) in __pthread_spin_lock() argument 70 __spin_lock_solid ((__spin_lock_t *) __lock); in __pthread_spin_lock() 77 __pthread_spin_wait (__pthread_spinlock_t *__lock) in __pthread_spin_wait() argument 79 __spin_lock ((__spin_lock_t *) __lock); in __pthread_spin_wait() 86 __pthread_spin_unlock (__pthread_spinlock_t *__lock) in __pthread_spin_unlock() argument [all …]
|
/sysdeps/generic/ |
A D | machine-lock.h | 37 extern void __spin_unlock (__spin_lock_t *__lock); 41 __spin_unlock (__spin_lock_t *__lock) in __spin_unlock() argument 43 *__lock = 0; in __spin_unlock() 49 extern int __spin_try_lock (__spin_lock_t *__lock); 53 __spin_try_lock (__spin_lock_t *__lock) in __spin_try_lock() argument 55 if (*__lock) in __spin_try_lock() 57 *__lock = 1; in __spin_try_lock() 64 extern int __spin_lock_locked (__spin_lock_t *__lock); 68 __spin_lock_locked (__spin_lock_t *__lock) in __spin_lock_locked() argument 70 return *__lock != 0; in __spin_lock_locked()
|
/sysdeps/htl/include/ |
A D | pthread.h | 11 pthread_spin_destroy (pthread_spinlock_t *__lock) in pthread_spin_destroy() argument 13 return __pthread_spin_destroy (__lock); in pthread_spin_destroy() 17 pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) in pthread_spin_init() argument 19 return __pthread_spin_init (__lock, __pshared); in pthread_spin_init() 23 pthread_spin_lock (pthread_spinlock_t *__lock) in pthread_spin_lock() argument 25 return __pthread_spin_lock (__lock); in pthread_spin_lock() 29 pthread_spin_trylock (pthread_spinlock_t *__lock) in pthread_spin_trylock() argument 31 return __pthread_spin_trylock (__lock); in pthread_spin_trylock() 35 pthread_spin_unlock (pthread_spinlock_t *__lock) in pthread_spin_unlock() argument 37 return __pthread_spin_unlock (__lock); in pthread_spin_unlock()
|
/sysdeps/mach/i386/ |
A D | machine-lock.h | 37 extern void __spin_unlock (__spin_lock_t *__lock); 41 __spin_unlock (__spin_lock_t *__lock) in __spin_unlock() argument 45 : "=&r" (__unlocked), "=m" (*__lock) : "0" (0) in __spin_unlock() 52 extern int __spin_try_lock (__spin_lock_t *__lock); 56 __spin_try_lock (__spin_lock_t *__lock) in __spin_try_lock() argument 60 : "=&r" (__locked), "=m" (*__lock) : "0" (1) in __spin_try_lock() 68 extern int __spin_lock_locked (__spin_lock_t *__lock); 72 __spin_lock_locked (__spin_lock_t *__lock) in __spin_lock_locked() argument 74 return *__lock != 0; in __spin_lock_locked()
|
/sysdeps/mach/ |
A D | libc-lock.h | 106 __libc_lock_recursive_t *const __lock = &(NAME); \ 109 if (__self == __lock->owner) \ 110 ++__lock->cnt; \ 112 __lock->owner = __self, __lock->cnt = 1; \ 120 if (__self != __lock->owner) \ 122 lll_lock (__lock->lock, 0); \ 123 __lock->owner = __self; \ 125 ++__lock->cnt; \ 132 if (--__lock->cnt == 0) \ 134 __lock->owner = 0; \ [all …]
|
/sysdeps/htl/ |
A D | pt-cond-brdcast.c | 29 __pthread_spin_wait (&cond->__lock); in __pthread_cond_broadcast() 33 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_broadcast() 37 __pthread_spin_wait (&cond->__lock); in __pthread_cond_broadcast() 39 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_broadcast()
|
A D | pt-rwlock-tryrdlock.c | 28 __pthread_spin_wait (&rwlock->__lock); in pthread_rwlock_tryrdlock() 37 __pthread_spin_unlock (&rwlock->__lock); in pthread_rwlock_tryrdlock() 46 __pthread_spin_unlock (&rwlock->__lock); in pthread_rwlock_tryrdlock() 52 __pthread_spin_unlock (&rwlock->__lock); in pthread_rwlock_tryrdlock()
|
A D | pt-rwlock-timedrdlock.c | 37 __pthread_spin_wait (&rwlock->__lock); in __pthread_rwlock_timedrdlock_internal() 46 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_timedrdlock_internal() 56 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_timedrdlock_internal() 67 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_timedrdlock_internal() 75 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_timedrdlock_internal() 86 __pthread_spin_wait (&rwlock->__lock); in __pthread_rwlock_timedrdlock_internal() 100 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_timedrdlock_internal()
|
A D | pt-rwlock-unlock.c | 31 __pthread_spin_wait (&rwlock->__lock); in __pthread_rwlock_unlock() 39 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_unlock() 59 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_unlock() 82 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_unlock() 95 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_unlock()
|
A D | pt-rwlock-timedwrlock.c | 37 __pthread_spin_wait (&rwlock->__lock); in __pthread_rwlock_timedwrlock_internal() 45 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_timedwrlock_internal() 53 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_timedwrlock_internal() 61 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_timedwrlock_internal() 72 __pthread_spin_wait (&rwlock->__lock); in __pthread_rwlock_timedwrlock_internal() 86 __pthread_spin_unlock (&rwlock->__lock); in __pthread_rwlock_timedwrlock_internal()
|
A D | pt-rwlock-trywrlock.c | 28 __pthread_spin_wait (&rwlock->__lock); in pthread_rwlock_trywrlock() 36 __pthread_spin_unlock (&rwlock->__lock); in pthread_rwlock_trywrlock() 42 __pthread_spin_unlock (&rwlock->__lock); in pthread_rwlock_trywrlock()
|
A D | pt-barrier-wait.c | 27 __pthread_spin_wait (&barrier->__lock); in pthread_barrier_wait() 33 __pthread_spin_unlock (&barrier->__lock); in pthread_barrier_wait() 50 __pthread_spin_unlock (&barrier->__lock); in pthread_barrier_wait() 65 __pthread_spin_unlock (&barrier->__lock); in pthread_barrier_wait()
|
A D | pt-cond-destroy.c | 28 __pthread_spin_wait (&cond->__lock); in __pthread_cond_destroy() 31 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_destroy() 34 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_destroy()
|
A D | pt-once.c | 28 __pthread_spin_unlock (&once_control->__lock); in clear_once_control() 39 __pthread_spin_wait (&once_control->__lock); in __pthread_once() 51 __pthread_spin_unlock (&once_control->__lock); in __pthread_once()
|
A D | pt-cond-signal.c | 30 __pthread_spin_wait (&cond->__lock); in __pthread_cond_signal() 34 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_signal()
|
A D | pt-cond-timedwait.c | 65 __pthread_spin_wait (&cond->__lock); in cancel_hook() 71 __pthread_spin_unlock (&cond->__lock); in cancel_hook() 137 __pthread_spin_wait (&cond->__lock); in __pthread_cond_timedwait_internal() 141 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_timedwait_internal() 161 __pthread_spin_wait (&cond->__lock); in __pthread_cond_timedwait_internal() 184 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_timedwait_internal()
|
/sysdeps/mach/hurd/htl/ |
A D | pt-mutex-unlock.c | 35 lll_unlock (mtxp->__lock, flags); in __pthread_mutex_unlock() 45 lll_unlock (mtxp->__lock, flags); in __pthread_mutex_unlock() 57 lll_unlock (mtxp->__lock, flags); in __pthread_mutex_unlock() 69 || (int) (mtxp->__lock & LLL_OWNER_MASK) != __getpid ()) in __pthread_mutex_unlock() 75 mtxp->__owner_id = ((mtxp->__lock & LLL_DEAD_OWNER) in __pthread_mutex_unlock() 77 lll_robust_unlock (mtxp->__lock, flags); in __pthread_mutex_unlock()
|
A D | pt-hurd-cond-timedwait.c | 59 __pthread_spin_wait (&cond->__lock); in __pthread_hurd_cond_timedwait_internal() 65 __pthread_spin_unlock (&cond->__lock); in __pthread_hurd_cond_timedwait_internal() 84 __pthread_spin_wait (&cond->__lock); in __pthread_hurd_cond_timedwait_internal() 99 __pthread_spin_unlock (&cond->__lock); in __pthread_hurd_cond_timedwait_internal() 130 __pthread_spin_wait (&cond->__lock); in __pthread_hurd_cond_timedwait_internal() 145 __pthread_spin_unlock (&cond->__lock); in __pthread_hurd_cond_timedwait_internal()
|
A D | pt-mutex.h | 31 && __getpid () == (int)(mtxp->__lock & LLL_OWNER_MASK)) \ 45 ret = cb (mtxp->__lock, ##__VA_ARGS__); \ 56 mtxp->__lock = mtxp->__lock | LLL_DEAD_OWNER; \
|
A D | pt-mutex-consistent.c | 30 unsigned int val = mtxp->__lock; in pthread_mutex_consistent() 34 && atomic_compare_and_exchange_bool_acq (&mtxp->__lock, in pthread_mutex_consistent()
|
A D | pt-mutex-lock.c | 36 lll_lock (mtxp->__lock, flags); in __pthread_mutex_lock() 50 lll_lock (mtxp->__lock, flags); in __pthread_mutex_lock() 60 lll_lock (mtxp->__lock, flags); in __pthread_mutex_lock()
|
A D | pt-mutex-trylock.c | 35 ret = lll_trylock (mtxp->__lock); in __pthread_mutex_trylock() 50 else if ((ret = lll_trylock (mtxp->__lock)) == 0) in __pthread_mutex_trylock() 62 if ((ret = lll_trylock (mtxp->__lock)) == 0) in __pthread_mutex_trylock()
|
A D | pt-mutex-timedlock.c | 37 ret = lll_abstimed_lock (mtxp->__lock, tsp, flags, clockid); in __pthread_mutex_clocklock() 50 else if ((ret = lll_abstimed_lock (mtxp->__lock, tsp, flags, clockid)) == 0) in __pthread_mutex_clocklock() 62 else if ((ret = lll_abstimed_lock (mtxp->__lock, tsp, flags, clockid)) == 0) in __pthread_mutex_clocklock()
|
/sysdeps/mach/hurd/ |
A D | closedir.c | 40 __libc_lock_lock (dirp->__lock); in __closedir() 50 __libc_lock_unlock (dirp->__lock); in __closedir() 55 __libc_lock_fini (dirp->__lock); in __closedir()
|
A D | seekdir.c | 28 __libc_lock_lock (dirp->__lock); in __seekdir() 35 __libc_lock_unlock (dirp->__lock); in __seekdir()
|