Home
last modified time | relevance | path

Searched refs:rnew (Results 1 – 2 of 2) sorted by relevance

/glibc-2.36/nptl/
Dpthread_rwlock_tryrdlock.c40 unsigned int rnew; in ___pthread_rwlock_tryrdlock() local
52 rnew = r + (1 << PTHREAD_RWLOCK_READER_SHIFT); in ___pthread_rwlock_tryrdlock()
64 rnew = (r + (1 << PTHREAD_RWLOCK_READER_SHIFT)) in ___pthread_rwlock_tryrdlock()
72 if (rnew >= PTHREAD_RWLOCK_READER_OVERFLOW) in ___pthread_rwlock_tryrdlock()
89 &r, rnew)); in ___pthread_rwlock_tryrdlock()
Dpthread_rwlock_common.c233 unsigned int rnew; in __pthread_rwlock_rdunlock() local
236 rnew = r - (1 << PTHREAD_RWLOCK_READER_SHIFT); in __pthread_rwlock_rdunlock()
240 if ((rnew >> PTHREAD_RWLOCK_READER_SHIFT) == 0) in __pthread_rwlock_rdunlock()
242 if ((rnew & PTHREAD_RWLOCK_WRLOCKED) != 0) in __pthread_rwlock_rdunlock()
243 rnew |= PTHREAD_RWLOCK_WRPHASE; in __pthread_rwlock_rdunlock()
244 rnew &= ~(unsigned int) PTHREAD_RWLOCK_RWAITING; in __pthread_rwlock_rdunlock()
255 &r, rnew)) in __pthread_rwlock_rdunlock()
259 if ((rnew & PTHREAD_RWLOCK_WRPHASE) != 0) in __pthread_rwlock_rdunlock()
275 if ((r & PTHREAD_RWLOCK_RWAITING) != (rnew & PTHREAD_RWLOCK_RWAITING)) in __pthread_rwlock_rdunlock()