Lines Matching refs:curthread
171 struct pthread *curthread = _get_curthread(); in rwlock_rdlock_common() local
180 if (curthread->rdlock_count) { in rwlock_rdlock_common()
204 curthread->rdlock_count++; in rwlock_rdlock_common()
225 curthread->rdlock_count++; in rwlock_rdlock_common()
247 struct pthread *curthread; in _Tthr_rwlock_tryrdlock() local
257 curthread = _get_curthread(); in _Tthr_rwlock_tryrdlock()
258 if (curthread->rdlock_count) { in _Tthr_rwlock_tryrdlock()
278 curthread->rdlock_count++; in _Tthr_rwlock_tryrdlock()
285 struct pthread *curthread; in _Tthr_rwlock_trywrlock() local
294 curthread = _get_curthread(); in _Tthr_rwlock_trywrlock()
297 prwlock->owner = TID(curthread); in _Tthr_rwlock_trywrlock()
304 struct pthread *curthread = _get_curthread(); in rwlock_wrlock_common() local
318 prwlock->owner = TID(curthread); in rwlock_wrlock_common()
330 prwlock->owner = TID(curthread); in rwlock_wrlock_common()
340 prwlock->owner = TID(curthread); in rwlock_wrlock_common()
365 struct pthread *curthread = _get_curthread(); in _Tthr_rwlock_unlock() local
383 if (__predict_false(prwlock->owner != TID(curthread))) in _Tthr_rwlock_unlock()
390 curthread->rdlock_count--; in _Tthr_rwlock_unlock()