Home
last modified time | relevance | path

Searched refs:shared (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/bionic/
Dsemaphore.c165 unsigned int shared = (*pvalue & SEMCOUNT_SHARED_MASK); in __sem_dec() local
177 while (__bionic_cmpxchg((int)(old|shared), in __sem_dec()
178 (int)(new|shared), in __sem_dec()
189 unsigned int shared = (*pvalue & SEMCOUNT_SHARED_MASK); in __sem_trydec() local
201 while (__bionic_cmpxchg((int)(old|shared), in __sem_trydec()
202 (int)(new|shared), in __sem_trydec()
219 unsigned int shared = (*pvalue & SEMCOUNT_SHARED_MASK); in __sem_inc() local
238 while ( __bionic_cmpxchg((int)(old|shared), in __sem_inc()
239 (int)(new|shared), in __sem_inc()
248 unsigned shared; in sem_wait() local
[all …]
Dpthread.c452 _normal_lock(pthread_mutex_t* mutex, int shared) in _normal_lock() argument
455 const int unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; in _normal_lock()
456 const int locked_uncontended = shared | MUTEX_STATE_BITS_LOCKED_UNCONTENDED; in _normal_lock()
464 const int locked_contended = shared | MUTEX_STATE_BITS_LOCKED_CONTENDED; in _normal_lock()
482 __futex_wait_ex(&mutex->value, shared, locked_contended, 0); in _normal_lock()
492 _normal_unlock(pthread_mutex_t* mutex, int shared) in _normal_unlock() argument
501 if (__bionic_atomic_dec(&mutex->value) != (shared|MUTEX_STATE_BITS_LOCKED_UNCONTENDED)) { in _normal_unlock()
516 mutex->value = shared; in _normal_unlock()
539 __futex_wake_ex(&mutex->value, shared, 1); in _normal_unlock()
593 int mvalue, mtype, tid, shared; in pthread_mutex_lock_impl() local
[all …]
/bionic/
DABI-bugs.txt14 atexit(3) handlers registered by a shared library aren't called on
/bionic/linker/
DAndroid.mk19 LOCAL_LDFLAGS := -shared -Wl,--exclude-libs,ALL