Home
last modified time | relevance | path

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

/nptl/
A Dpthread_spin_lock.c24 __pthread_spin_lock (pthread_spinlock_t *lock) in __pthread_spin_lock() argument
43 if (__glibc_likely (atomic_exchange_acquire (lock, 1) == 0)) in __pthread_spin_lock()
49 if (__glibc_likely (atomic_compare_exchange_weak_acquire (lock, &val, 1))) in __pthread_spin_lock()
71 val = atomic_load_relaxed (lock); in __pthread_spin_lock()
78 while (!atomic_compare_exchange_weak_acquire (lock, &val, 1)); in __pthread_spin_lock()
A Dpthread_spin_trylock.c25 __pthread_spin_trylock (pthread_spinlock_t *lock) in __pthread_spin_trylock() argument
54 if (atomic_exchange_acquire (lock, 1) == 0) in __pthread_spin_trylock()
63 if (atomic_compare_exchange_weak_acquire (lock, &val, 1)) in __pthread_spin_trylock()
76 while (atomic_load_relaxed (lock) == 0); in __pthread_spin_trylock()
A DDESIGN-systemtap-probes.txt26 arg1 = address of mutex lock
28 arg1 = address of mutex lock
32 arg1 = address of mutex lock
39 mutex lock
45 arg1 = address of rw lock
47 arg1 = address of rw lock
50 arg1 = address of rw lock
54 the lock
57 arg1 = address of rw lock
68 arg2 = mutex lock
[all …]
A Dtst-rwlock20.c43 static pthread_rwlock_t lock; variable
63 xpthread_rwlock_wrlock (&lock); in tf()
64 xpthread_rwlock_unlock (&lock); in tf()
69 xpthread_rwlock_rdlock (&lock); in tf()
70 xpthread_rwlock_unlock (&lock); in tf()
92 xpthread_rwlock_init (&lock, &attr); in do_test()
A Dtst-rwlock19.c33 static pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER; variable
48 int err = pthread_rwlock_rdlock (&lock); in reader_thread()
64 if (pthread_rwlock_unlock (&lock) != 0) in reader_thread()
86 lock.__data.__readers = readers; in do_test()
116 if (lock.__data.__readers != readers) in do_test()
A Dpthread_spin_unlock.c24 __pthread_spin_unlock (pthread_spinlock_t *lock) in __pthread_spin_unlock() argument
29 atomic_store_release (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
26 atomic_store_relaxed (lock, 0); in __pthread_spin_init()
A Dtst-rwlock8.c38 static pthread_rwlock_t lock; variable
54 if (pthread_rwlock_wrlock (&lock) != 0) in writer_thread()
64 if (pthread_rwlock_unlock (&lock) != 0) in writer_thread()
90 if (pthread_rwlock_rdlock (&lock) != 0) in reader_thread()
100 if (pthread_rwlock_unlock (&lock) != 0) in reader_thread()
134 if (pthread_rwlock_init (&lock, &a) != 0) in do_test()
A Dtst-rwlock9.c48 static pthread_rwlock_t lock; variable
83 ? pthread_rwlock_timedwrlock (&lock, &ts) in writer_thread()
84 : pthread_rwlock_clockwrlock (&lock, clockid, &ts); in writer_thread()
94 if (pthread_rwlock_unlock (&lock) != 0) in writer_thread()
129 e = pthread_rwlock_timedrdlock (&lock, &ts); in reader_thread()
131 e = pthread_rwlock_clockrdlock (&lock, clockid, &ts); in reader_thread()
141 if (pthread_rwlock_unlock (&lock) != 0) in reader_thread()
165 if (pthread_rwlock_init (&lock, &a) != 0) in do_test_clock()
A Dpthread_getschedparam.c38 lll_lock (pd->lock, LLL_PRIVATE); in __pthread_getschedparam()
68 lll_unlock (pd->lock, LLL_PRIVATE); in __pthread_getschedparam()
A Dpthread_spin_destroy.c22 __pthread_spin_destroy (pthread_spinlock_t *lock) in __pthread_spin_destroy() argument
A Dpthread_setschedparam.c39 lll_lock (pd->lock, LLL_PRIVATE); in __pthread_setschedparam()
67 lll_unlock (pd->lock, LLL_PRIVATE); in __pthread_setschedparam()
A Dpthread_setschedprio.c41 lll_lock (pd->lock, LLL_PRIVATE); in __pthread_setschedprio()
60 lll_unlock (pd->lock, LLL_PRIVATE); in __pthread_setschedprio()
A Dtst-signal3.c41 static pthread_mutex_t lock[N]; variable
87 pthread_mutex_lock (&lock[idx]); in tf()
150 if (pthread_mutex_init (&lock[i], NULL) != 0) in do_test()
155 if (pthread_mutex_lock (&lock[i]) != 0) in do_test()
193 if (pthread_mutex_unlock (&lock[i]) != 0) in do_test()
A Dnptl-printers.py58 self.lock = data['__lock']
126 if self.lock == PTHREAD_MUTEX_UNLOCKED:
129 if self.lock & FUTEX_WAITERS:
136 if self.lock & FUTEX_OWNER_DIED:
139 self.values.append(('Owner ID', self.lock & FUTEX_TID_MASK))
155 lock_value = self.lock
164 waiters = self.lock & FUTEX_WAITERS
165 owner = self.lock & FUTEX_TID_MASK
168 waiters = (self.lock != PTHREAD_MUTEX_LOCKED_NO_WAITERS)
206 prio_ceiling = ((self.lock & PTHREAD_MUTEX_PRIO_CEILING_MASK)
A Dtpp.c119 lll_lock (self->lock, LLL_PRIVATE); in libc_hidden_def()
155 lll_unlock (self->lock, LLL_PRIVATE); in libc_hidden_def()
172 lll_lock (self->lock, LLL_PRIVATE); in libc_hidden_def()
194 lll_unlock (self->lock, LLL_PRIVATE); in libc_hidden_def()
A Dpthread_getattr_np.c43 lll_lock (thread->lock, LLL_PRIVATE); in __pthread_getattr_np()
201 lll_unlock (thread->lock, LLL_PRIVATE); in __pthread_getattr_np()
A Dpthread_create.c247 lll_lock (pd->lock, LLL_PRIVATE); in create_thread()
348 lll_lock (pd->lock, LLL_PRIVATE); in start_thread()
358 lll_unlock (pd->lock, LLL_PRIVATE); in start_thread()
847 lll_unlock (pd->lock, LLL_PRIVATE); in __pthread_create_2_1()
880 lll_unlock (pd->lock, LLL_PRIVATE); in __pthread_create_2_1()
A DTODO10 If yes, for a short time release lock. If someone else locks no wakeup
A Ddescr.h331 int lock; member
A Dallocatestack.c550 pd->lock = LLL_LOCK_INITIALIZER; in allocate_stack()
A DMakefile46 elision-lock \

Completed in 18 milliseconds