Home | History | Annotate | Download | only in common

Lines Matching defs:rwlock

109 /* perform a simple init/lock/unlock/destroy test on a rwlock of given attributes */
141 /* simple init/lock/unlock/destroy on all rwlock types */
231 * - main thread creates a rwlock and rdlocks it
235 * then unlock the rwlock.
237 * - thread 1 tryrdlocks() the rwlock. It shall acquire the lock
240 * - thread 2 trywrlocks() the rwlock. In case of failure (EBUSY), it waits
242 * it succeeds. It then unlocks the rwlock.
247 * to which thread is going to acquire the rwlock first.
250 pthread_rwlock_t rwlock[1];
262 TZERO(pthread_rwlock_tryrdlock(s->rwlock));
263 TZERO(pthread_rwlock_unlock(s->rwlock));
266 TZERO(pthread_rwlock_wrlock(s->rwlock));
271 TZERO(pthread_rwlock_unlock(s->rwlock));
281 int ret = pthread_rwlock_trywrlock(s->rwlock);
291 TZERO(pthread_rwlock_unlock(s->rwlock));
302 TZERO(pthread_rwlock_init(s->rwlock, attr));
306 TZERO(pthread_rwlock_rdlock(s->rwlock));
314 TZERO(pthread_rwlock_unlock(s->rwlock));