Home
last modified time | relevance | path

Searched refs:__spinlock (Results 1 – 14 of 14) sorted by relevance

/l4re-core-master/uclibc/lib/libpthread/src/
A Dspinlock.c77 __pthread_acquire(&lock->__spinlock); in __pthread_lock()
104 lock->__spinlock += (spin_count - lock->__spinlock) / 8; in __pthread_lock()
115 lock->__spinlock += (spin_count - lock->__spinlock) / 8; in __pthread_lock()
183 __pthread_release(&lock->__spinlock); in __pthread_unlock()
374 __pthread_acquire(&lock->__spinlock); in __pthread_alt_lock()
389 __pthread_release(&lock->__spinlock); in __pthread_alt_lock()
449 __pthread_acquire(&lock->__spinlock); in __pthread_alt_timedlock()
464 __pthread_release(&lock->__spinlock); in __pthread_alt_timedlock()
530 __pthread_acquire(&lock->__spinlock); in __pthread_alt_unlock()
650 __pthread_release(&lock->__spinlock); in __pthread_alt_unlock()
[all …]
A Dspinlock.h102 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_init_lock()
112 return (testandset(&lock->__spinlock) ? EBUSY : 0); in __pthread_trylock()
139 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_alt_init_lock()
151 if (testandset(&lock->__spinlock) == 0) in __pthread_alt_trylock()
159 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_alt_trylock()
168 } while(! compare_and_swap(&lock->__status, 0, 1, &lock->__spinlock)); in __pthread_alt_trylock()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/
A Dspinlock.c74 __pthread_acquire(&lock->__spinlock); in __pthread_lock()
101 lock->__spinlock += (spin_count - lock->__spinlock) / 8; in __pthread_lock()
112 lock->__spinlock += (spin_count - lock->__spinlock) / 8; in __pthread_lock()
180 __pthread_release(&lock->__spinlock); in __pthread_unlock()
371 __pthread_acquire(&lock->__spinlock); in __pthread_alt_lock()
386 __pthread_release(&lock->__spinlock); in __pthread_alt_lock()
446 __pthread_acquire(&lock->__spinlock); in __pthread_alt_timedlock()
461 __pthread_release(&lock->__spinlock); in __pthread_alt_timedlock()
527 __pthread_acquire(&lock->__spinlock); in __pthread_alt_unlock()
647 __pthread_release(&lock->__spinlock); in __pthread_alt_unlock()
[all …]
A Dspinlock.h102 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_init_lock()
112 return (testandset(&lock->__spinlock) ? EBUSY : 0); in __pthread_trylock()
139 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_alt_init_lock()
151 if (testandset(&lock->__spinlock) == 0) in __pthread_alt_trylock()
159 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_alt_trylock()
168 } while(! compare_and_swap(&lock->__status, 0, 1, &lock->__spinlock)); in __pthread_alt_trylock()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads.old/
A Dspinlock.c75 __pthread_acquire(&lock->__spinlock); in __pthread_lock()
92 int max_count = lock->__spinlock * 2 + 10; in __pthread_lock()
102 lock->__spinlock += (spin_count - lock->__spinlock) / 8; in __pthread_lock()
113 lock->__spinlock += (spin_count - lock->__spinlock) / 8; in __pthread_lock()
182 __pthread_release(&lock->__spinlock); in __pthread_unlock()
373 __pthread_acquire(&lock->__spinlock); in __pthread_alt_lock()
388 __pthread_release(&lock->__spinlock); in __pthread_alt_lock()
448 __pthread_acquire(&lock->__spinlock); in __pthread_alt_timedlock()
463 __pthread_release(&lock->__spinlock); in __pthread_alt_timedlock()
529 __pthread_acquire(&lock->__spinlock); in __pthread_alt_unlock()
[all …]
A Dspinlock.h102 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_init_lock()
112 return (testandset(&lock->__spinlock) ? EBUSY : 0); in __pthread_trylock()
139 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_alt_init_lock()
151 if (testandset(&lock->__spinlock) == 0) in __pthread_alt_trylock()
159 lock->__spinlock = __LT_SPINLOCK_INIT; in __pthread_alt_trylock()
168 } while(! compare_and_swap(&lock->__status, 0, 1, &lock->__spinlock)); in __pthread_alt_trylock()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/
A Dmalloc-machine.h35 (((m)->__m_lock.__spinlock = __LT_SPINLOCK_INIT),(*(int *)(m))) )
38 (__load_and_clear(&((m)->__m_lock.__spinlock)), 0))
41 (*(int *)(m) ? 1 : (__load_and_clear(&((m)->__m_lock.__spinlock)), 0)))
44 (((m)->__m_lock.__spinlock = __LT_SPINLOCK_INIT), (*(int *)(m))) )
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads.old/sysdeps/x86_64/
A Dpt-machine.h46 testandset (int *__spinlock) in testandset() argument
52 : "=r"(ret), "=m"(*__spinlock) in testandset()
53 : "0"(1), "m"(*__spinlock) in testandset()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads.old/sysdeps/pthread/bits/
A Dlibc-lock.h125 (NAME).__m_lock.__spinlock = __LT_SPINLOCK_INIT; \
142 (NAME).__m_lock.__spinlock = __LT_SPINLOCK_INIT; \
166 (NAME).__m_lock.__spinlock = __LT_SPINLOCK_INIT; \
A Dpthreadtypes.h32 int __spinlock; /* Used by compare_and_swap emulation. Also, member
/l4re-core-master/uclibc/lib/libpthread/include/bits/
A Dpthreadtypes.h28 int __spinlock; /* Used by compare_and_swap emulation. Also, member
A Dlibc-lock.h128 (NAME).__m_lock.__spinlock = __LT_SPINLOCK_INIT; \
145 (NAME).mutex.__m_lock.__spinlock = __LT_SPINLOCK_INIT; \
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/sysdeps/pthread/bits/
A Dpthreadtypes.h32 int __spinlock; /* Used by compare_and_swap emulation. Also, member
A Dlibc-lock.h125 (NAME).__m_lock.__spinlock = __LT_SPINLOCK_INIT; \
142 (NAME).mutex.__m_lock.__spinlock = __LT_SPINLOCK_INIT; \

Completed in 15 milliseconds