/libpthread/linuxthreads/sysdeps/hppa/ |
A D | pspinlock.c | 24 __pthread_spin_lock (pthread_spinlock_t *lock) in __pthread_spin_lock() argument 30 : "=r" (val), "=m" (*lock) in __pthread_spin_lock() 31 : "m" (*lock)); in __pthread_spin_lock() 40 __pthread_spin_trylock (pthread_spinlock_t *lock) in weak_alias() 45 : "=r" (val), "=m" (*lock) in weak_alias() 46 : "m" (*lock)); in weak_alias() 54 __pthread_spin_unlock (pthread_spinlock_t *lock) in weak_alias() 56 *lock = 1; in weak_alias() 63 __pthread_spin_init (pthread_spinlock_t *lock, int pshared) in weak_alias() 68 *lock = 1; in weak_alias() [all …]
|
/libpthread/nptl/sysdeps/arm/ |
A D | pthread_spin_lock.c | 29 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 38 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 54 while (*lock != 0 && wait > 0) in pthread_spin_lock() 59 while (*lock != 0) in pthread_spin_lock() 63 while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
A D | pthread_spin_trylock.c | 24 pthread_spin_trylock (pthread_spinlock_t *lock) in pthread_spin_trylock() argument 26 return atomic_exchange_acq (lock, 1) ? EBUSY : 0; in pthread_spin_trylock()
|
/libpthread/nptl/sysdeps/nds32/ |
A D | pthread_spin_lock.c | 28 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 37 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 53 while (*lock != 0 && wait > 0) in pthread_spin_lock() 58 while (*lock != 0) in pthread_spin_lock() 62 while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
A D | pthread_spin_trylock.c | 23 pthread_spin_trylock (pthread_spinlock_t *lock) in pthread_spin_trylock() argument 25 return atomic_exchange_acq (lock, 1) ? EBUSY : 0; in pthread_spin_trylock()
|
/libpthread/nptl/sysdeps/riscv32/ |
A D | pthread_spin_lock.c | 28 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 37 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 53 while (*lock != 0 && wait > 0) in pthread_spin_lock() 58 while (*lock != 0) in pthread_spin_lock() 62 while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
A D | pthread_spin_trylock.c | 23 pthread_spin_trylock (pthread_spinlock_t *lock) in pthread_spin_trylock() argument 25 return atomic_exchange_acq (lock, 1) ? EBUSY : 0; in pthread_spin_trylock()
|
/libpthread/nptl/sysdeps/kvx/ |
A D | pthread_spin_lock.c | 28 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 37 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 51 while (*lock != 0 && wait > 0) in pthread_spin_lock() 54 while (*lock != 0) in pthread_spin_lock() 57 } while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
A D | pthread_spin_trylock.c | 23 pthread_spin_trylock (pthread_spinlock_t *lock) in pthread_spin_trylock() argument 25 return atomic_exchange_acq (lock, 1) ? EBUSY : 0; in pthread_spin_trylock()
|
/libpthread/nptl/sysdeps/aarch64/ |
A D | pthread_spin_lock.c | 28 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 37 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 53 while (*lock != 0 && wait > 0) in pthread_spin_lock() 58 while (*lock != 0) in pthread_spin_lock() 62 while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
/libpthread/nptl/sysdeps/nios2/ |
A D | pthread_spin_lock.c | 29 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 38 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 54 while (*lock != 0 && wait > 0) in pthread_spin_lock() 59 while (*lock != 0) in pthread_spin_lock() 63 while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
/libpthread/nptl/sysdeps/or1k/ |
A D | pthread_spin_lock.c | 28 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 37 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 53 while (*lock != 0 && wait > 0) in pthread_spin_lock() 58 while (*lock != 0) in pthread_spin_lock() 62 while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
A D | pthread_spin_trylock.c | 23 pthread_spin_trylock (pthread_spinlock_t *lock) in pthread_spin_trylock() argument 25 return atomic_exchange_acq (lock, 1) ? EBUSY : 0; in pthread_spin_trylock()
|
/libpthread/nptl/sysdeps/riscv64/ |
A D | pthread_spin_lock.c | 28 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 37 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 53 while (*lock != 0 && wait > 0) in pthread_spin_lock() 58 while (*lock != 0) in pthread_spin_lock() 62 while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
/libpthread/nptl/sysdeps/m68k/ |
A D | pthread_spin_lock.c | 28 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 37 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 53 while (*lock != 0 && wait > 0) in pthread_spin_lock() 58 while (*lock != 0) in pthread_spin_lock() 62 while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
/libpthread/nptl/sysdeps/microblaze/ |
A D | pthread_spin_lock.c | 25 pthread_spin_lock (pthread_spinlock_t *lock) in pthread_spin_lock() argument 34 if (atomic_exchange_acq (lock, 1) == 0) in pthread_spin_lock() 50 while (*lock != 0 && wait > 0) in pthread_spin_lock() 55 while (*lock != 0) in pthread_spin_lock() 59 while (atomic_compare_and_exchange_val_acq (lock, 1, 0) != 0); in pthread_spin_lock()
|
/libpthread/linuxthreads/sysdeps/nds32/ |
A D | pspinlock.c | 29 __pthread_spin_lock (pthread_spinlock_t *lock) in __pthread_spin_lock() argument 43 : "r" (lock), "r" (offset), "r" (temp) in __pthread_spin_lock() 52 __pthread_spin_trylock (pthread_spinlock_t *lock) in weak_alias() 70 : "r" (lock), "r" (offset), "r" (temp) in weak_alias() 78 __pthread_spin_unlock (pthread_spinlock_t *lock) in weak_alias() 80 return *lock = 0; in weak_alias() 86 __pthread_spin_init (pthread_spinlock_t *lock, int pshared) in weak_alias() 91 return *lock = 0; in weak_alias() 97 __pthread_spin_destroy (pthread_spinlock_t *lock) in weak_alias()
|
/libpthread/linuxthreads/ |
A D | spinlock.h | 101 lock->__status = 0; in __pthread_init_lock() 102 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_init_lock() 118 if (lock->__status != 0) return EBUSY; in __pthread_trylock() 138 lock->__status = 0; in __pthread_alt_init_lock() 139 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_alt_init_lock() 151 if (testandset(&lock->__spinlock) == 0) in __pthread_alt_trylock() 153 if (lock->__status == 0) in __pthread_alt_trylock() 155 lock->__status = 1; in __pthread_alt_trylock() 159 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_alt_trylock() 167 if (lock->__status != 0) return EBUSY; in __pthread_alt_trylock() [all …]
|
A D | spinlock.c | 83 if (lock->__status == 0 && __compare_and_swap (&lock->__status, 0, 1)) in __pthread_lock() 102 lock->__spinlock += (spin_count - lock->__spinlock) / 8; in __pthread_lock() 110 __asm__ __volatile__ ("" : "=m" (lock->__status) : "m" (lock->__status)); in __pthread_lock() 113 lock->__spinlock += (spin_count - lock->__spinlock) / 8; in __pthread_lock() 191 oldstatus = lock->__status; in __pthread_unlock() 381 if (lock->__status == 0) in __pthread_alt_lock() 382 lock->__status = 1; in __pthread_alt_lock() 456 if (lock->__status == 0) in __pthread_alt_timedlock() 457 lock->__status = 1; in __pthread_alt_timedlock() 548 if (lock->__status == 0 || lock->__status == 1) { in __pthread_alt_unlock() [all …]
|
/libpthread/nptl/sysdeps/i386/ |
A D | pthread_spin_lock.c | 32 pthread_spinlock_t *lock) in pthread_spin_lock() argument 44 : "=m" (*lock) in pthread_spin_lock() 45 : "m" (*lock)); in pthread_spin_lock()
|
/libpthread/nptl/sysdeps/pthread/ |
A D | pthread_spin_unlock.c | 24 pthread_spin_unlock (pthread_spinlock_t *lock) in pthread_spin_unlock() argument 27 *lock = 0; in pthread_spin_unlock()
|
A D | pthread_spin_init.c | 23 pthread_spin_init (pthread_spinlock_t *lock, int pshared) in pthread_spin_init() argument 25 *lock = 0; in pthread_spin_init()
|
/libpthread/nptl/ |
A D | DESIGN-rwlock.txt | 10 unsigned int lock: 38 lll_lock(rwlock->lock); 50 lll_lock(rwlock->lock); 54 lll_unlock(rwlock->lock); 60 lll_lock(rwlock->lock); 64 lll_unlock(rwlock->lock); 70 lll_lock(rwlock->lock); 81 lll_lock(rwlock->lock); 85 lll_unlock(rwlock->lock); 90 lll_lock(rwlock->lock); [all …]
|
/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/ |
A D | internaltypes.h | 10 int lock; member 21 unsigned char lock; member 30 unsigned char lock; member
|
A D | sem_wait.c | 39 __sparc32_atomic_do_lock24 (&isem->lock); in __sem_wait_cleanup() 41 __sparc32_atomic_do_unlock24 (&isem->lock); in __sem_wait_cleanup() 57 __sparc32_atomic_do_lock24 (&isem->lock); in sem_wait() 63 __sparc32_atomic_do_unlock24 (&isem->lock); in sem_wait() 98 __sparc32_atomic_do_lock24 (&isem->lock); in sem_wait() 102 __sparc32_atomic_do_unlock24 (&isem->lock); in sem_wait() 118 __sparc32_atomic_do_lock24 (&isem->lock); in sem_wait() 120 __sparc32_atomic_do_unlock24 (&isem->lock); in sem_wait()
|