Lines Matching refs:flags
48 uint32_t flags; member
54 flags = RWLOCK_FLAG_SHARED; in Init()
68 status_t ReadLock(uint32 flags, bigtime_t timeout) in ReadLock()
72 status = acquire_sem_etc(sem, 1, flags, timeout); in ReadLock()
77 status_t WriteLock(uint32 flags, bigtime_t timeout) in WriteLock()
81 status = acquire_sem_etc(sem, MAX_READER_COUNT, flags, timeout); in WriteLock()
100 uint32_t flags; member
113 flags = 0; in Init()
155 status_t ReadLock(uint32 flags, bigtime_t timeout) in ReadLock()
164 return _Wait(false, flags, timeout); in ReadLock()
167 status_t WriteLock(uint32 flags, bigtime_t timeout) in WriteLock()
177 return _Wait(true, flags, timeout); in WriteLock()
196 status_t _Wait(bool writer, uint32 flags, bigtime_t timeout) in _Wait()
215 status = _kern_block_thread(flags, timeout); in _Wait()
312 bool shared = attr != NULL && (attr->flags & RWLOCK_FLAG_SHARED) != 0; in pthread_rwlock_init()
324 if ((lock->flags & RWLOCK_FLAG_SHARED) != 0) in pthread_rwlock_destroy()
334 if ((lock->flags & RWLOCK_FLAG_SHARED) != 0) in pthread_rwlock_rdlock()
345 if ((lock->flags & RWLOCK_FLAG_SHARED) != 0) in pthread_rwlock_tryrdlock()
363 uint32 flags = 0; in pthread_rwlock_clockrdlock() local
367 flags = B_ABSOLUTE_REAL_TIME_TIMEOUT; in pthread_rwlock_clockrdlock()
370 flags = B_ABSOLUTE_TIMEOUT; in pthread_rwlock_clockrdlock()
378 if ((lock->flags & RWLOCK_FLAG_SHARED) != 0) in pthread_rwlock_clockrdlock()
379 error = ((SharedRWLock*)lock)->ReadLock(flags, timeout); in pthread_rwlock_clockrdlock()
381 error = ((LocalRWLock*)lock)->ReadLock(flags, timeout); in pthread_rwlock_clockrdlock()
400 if ((lock->flags & RWLOCK_FLAG_SHARED) != 0) in pthread_rwlock_wrlock()
411 if ((lock->flags & RWLOCK_FLAG_SHARED) != 0) in pthread_rwlock_trywrlock()
429 uint32 flags = 0; in pthread_rwlock_clockwrlock() local
433 flags = B_ABSOLUTE_REAL_TIME_TIMEOUT; in pthread_rwlock_clockwrlock()
436 flags = B_ABSOLUTE_TIMEOUT; in pthread_rwlock_clockwrlock()
444 if ((lock->flags & RWLOCK_FLAG_SHARED) != 0) in pthread_rwlock_clockwrlock()
445 error = ((SharedRWLock*)lock)->WriteLock(flags, timeout); in pthread_rwlock_clockwrlock()
447 error = ((LocalRWLock*)lock)->WriteLock(flags, timeout); in pthread_rwlock_clockwrlock()
466 if ((lock->flags & RWLOCK_FLAG_SHARED) != 0) in pthread_rwlock_unlock()
484 attr->flags = 0; in pthread_rwlockattr_init()
506 *shared = (attr->flags & RWLOCK_FLAG_SHARED) != 0 in pthread_rwlockattr_getpshared()
518 attr->flags |= RWLOCK_FLAG_SHARED; in pthread_rwlockattr_setpshared()
520 attr->flags &= ~RWLOCK_FLAG_SHARED; in pthread_rwlockattr_setpshared()