Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 72) sorted by relevance

123

/libpthread/linuxthreads/sysdeps/hppa/
A Dpspinlock.c24 __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 Dpthread_spin_lock.c29 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 Dpthread_spin_trylock.c24 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 Dpthread_spin_lock.c28 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 Dpthread_spin_trylock.c23 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 Dpthread_spin_lock.c28 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 Dpthread_spin_trylock.c23 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 Dpthread_spin_lock.c28 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 Dpthread_spin_trylock.c23 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 Dpthread_spin_lock.c28 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 Dpthread_spin_lock.c29 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 Dpthread_spin_lock.c28 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 Dpthread_spin_trylock.c23 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 Dpthread_spin_lock.c28 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 Dpthread_spin_lock.c28 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 Dpthread_spin_lock.c25 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 Dpspinlock.c29 __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 Dspinlock.h101 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 Dspinlock.c83 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 Dpthread_spin_lock.c32 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 Dpthread_spin_unlock.c24 pthread_spin_unlock (pthread_spinlock_t *lock) in pthread_spin_unlock() argument
27 *lock = 0; in pthread_spin_unlock()
A Dpthread_spin_init.c23 pthread_spin_init (pthread_spinlock_t *lock, int pshared) in pthread_spin_init() argument
25 *lock = 0; in pthread_spin_init()
/libpthread/nptl/
A DDESIGN-rwlock.txt10 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 Dinternaltypes.h10 int lock; member
21 unsigned char lock; member
30 unsigned char lock; member
A Dsem_wait.c39 __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()

Completed in 50 milliseconds

123