Home
last modified time | relevance | path

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

/third_party/musl/src/thread/
Dpthread_rwlock_timedwrlock.c11 while (spins-- && rw->_rw_lock && !rw->_rw_waiters) a_spin(); in __pthread_rwlock_timedwrlock()
14 if (!(r=rw->_rw_lock)) continue; in __pthread_rwlock_timedwrlock()
17 a_cas(&rw->_rw_lock, r, t); in __pthread_rwlock_timedwrlock()
18 r = __timedwait(&rw->_rw_lock, t, CLOCK_REALTIME, at, rw->_rw_shared^128); in __pthread_rwlock_timedwrlock()
Dpthread_rwlock_timedrdlock.c11 while (spins-- && rw->_rw_lock && !rw->_rw_waiters) a_spin(); in __pthread_rwlock_timedrdlock()
14 if (!(r=rw->_rw_lock) || (r&0x7fffffff)!=0x7fffffff) continue; in __pthread_rwlock_timedrdlock()
17 a_cas(&rw->_rw_lock, r, t); in __pthread_rwlock_timedrdlock()
18 r = __timedwait(&rw->_rw_lock, t, CLOCK_REALTIME, at, rw->_rw_shared^128); in __pthread_rwlock_timedrdlock()
Dpthread_rwlock_unlock.c8 val = rw->_rw_lock; in __pthread_rwlock_unlock()
12 } while (a_cas(&rw->_rw_lock, val, new) != val); in __pthread_rwlock_unlock()
15 __wake(&rw->_rw_lock, cnt, priv); in __pthread_rwlock_unlock()
Dpthread_rwlock_tryrdlock.c7 val = rw->_rw_lock; in __pthread_rwlock_tryrdlock()
11 } while (a_cas(&rw->_rw_lock, val, val+1) != val); in __pthread_rwlock_tryrdlock()
Dpthread_rwlock_trywrlock.c5 if (a_cas(&rw->_rw_lock, 0, 0x7fffffff)) return EBUSY; in __pthread_rwlock_trywrlock()
/third_party/musl/porting/linux/user/src/thread/
Dpthread_rwlock_timedwrlock.c30 while (spins-- && rw->_rw_lock && !rw->_rw_waiters) a_spin(); in __pthread_rwlock_timedwrlock()
33 if (!(r=rw->_rw_lock)) continue; in __pthread_rwlock_timedwrlock()
36 a_cas(&rw->_rw_lock, r, t); in __pthread_rwlock_timedwrlock()
37 r = __timedwait(&rw->_rw_lock, t, clock, at, rw->_rw_shared^128); in __pthread_rwlock_timedwrlock()
Dpthread_rwlock_timedrdlock.c27 while (spins-- && rw->_rw_lock && !rw->_rw_waiters) a_spin(); in __pthread_rwlock_timedrdlock()
30 if (!(r=rw->_rw_lock) || (r&0x7fffffff)!=0x7fffffff) continue; in __pthread_rwlock_timedrdlock()
33 a_cas(&rw->_rw_lock, r, t); in __pthread_rwlock_timedrdlock()
34 r = __timedwait(&rw->_rw_lock, t, clock, at, rw->_rw_shared^128); in __pthread_rwlock_timedrdlock()
/third_party/musl/porting/uniproton/kernel/src/internal/
Dpthread_impl.h45 #define _rw_lock __u.__vi[0] macro
/third_party/musl/porting/liteos_m/kernel/src/internal/
Dpthread_impl.h45 #define _rw_lock __u.__vi[0] macro
/third_party/musl/porting/liteos_a/kernel/src/internal/
Dpthread_impl.h40 #define _rw_lock __u.__vi[0] macro
/third_party/musl/porting/liteos_m/user/src/internal/
Dpthread_impl.h92 #define _rw_lock __u.__vi[0] macro
/third_party/musl/porting/liteos_a/user/src/internal/
Dpthread_impl.h102 #define _rw_lock __u.__vi[0] macro
/third_party/musl/src/internal/
Dpthread_impl.h99 #define _rw_lock __u.__vi[0] macro
/third_party/musl/porting/linux/user/src/internal/
Dpthread_impl.h131 #define _rw_lock __u.__vi[0] macro