Lines Matching refs:lockp

35 pthread_rwlock_init(pthread_rwlock_t *lockp,  in pthread_rwlock_init()  argument
46 *lockp = lock; in pthread_rwlock_init()
53 pthread_rwlock_destroy(pthread_rwlock_t *lockp) in pthread_rwlock_destroy() argument
57 assert(lockp); in pthread_rwlock_destroy()
58 lock = *lockp; in pthread_rwlock_destroy()
68 *lockp = NULL; in pthread_rwlock_destroy()
74 _rthread_rwlock_ensure_init(pthread_rwlock_t *lockp) in _rthread_rwlock_ensure_init() argument
82 if (*lockp == NULL) in _rthread_rwlock_ensure_init()
85 if (*lockp == NULL) in _rthread_rwlock_ensure_init()
86 ret = pthread_rwlock_init(lockp, NULL); in _rthread_rwlock_ensure_init()
94 _rthread_rwlock_rdlock(pthread_rwlock_t *lockp, const struct timespec *abstime, in _rthread_rwlock_rdlock() argument
101 if ((error = _rthread_rwlock_ensure_init(lockp))) in _rthread_rwlock_rdlock()
104 lock = *lockp; in _rthread_rwlock_rdlock()
131 pthread_rwlock_rdlock(pthread_rwlock_t *lockp) in pthread_rwlock_rdlock() argument
133 return (_rthread_rwlock_rdlock(lockp, NULL, 0)); in pthread_rwlock_rdlock()
137 pthread_rwlock_tryrdlock(pthread_rwlock_t *lockp) in pthread_rwlock_tryrdlock() argument
139 return (_rthread_rwlock_rdlock(lockp, NULL, 1)); in pthread_rwlock_tryrdlock()
143 pthread_rwlock_timedrdlock(pthread_rwlock_t *lockp, in pthread_rwlock_timedrdlock() argument
148 return (_rthread_rwlock_rdlock(lockp, abstime, 0)); in pthread_rwlock_timedrdlock()
153 _rthread_rwlock_wrlock(pthread_rwlock_t *lockp, const struct timespec *abstime, in _rthread_rwlock_wrlock() argument
160 if ((error = _rthread_rwlock_ensure_init(lockp))) in _rthread_rwlock_wrlock()
163 lock = *lockp; in _rthread_rwlock_wrlock()
197 pthread_rwlock_wrlock(pthread_rwlock_t *lockp) in pthread_rwlock_wrlock() argument
199 return (_rthread_rwlock_wrlock(lockp, NULL, 0)); in pthread_rwlock_wrlock()
203 pthread_rwlock_trywrlock(pthread_rwlock_t *lockp) in pthread_rwlock_trywrlock() argument
205 return (_rthread_rwlock_wrlock(lockp, NULL, 1)); in pthread_rwlock_trywrlock()
209 pthread_rwlock_timedwrlock(pthread_rwlock_t *lockp, in pthread_rwlock_timedwrlock() argument
214 return (_rthread_rwlock_wrlock(lockp, abstime, 0)); in pthread_rwlock_timedwrlock()
219 pthread_rwlock_unlock(pthread_rwlock_t *lockp) in pthread_rwlock_unlock() argument
226 lock = *lockp; in pthread_rwlock_unlock()