Searched refs:reader_active (Results 1 – 1 of 1) sorted by relevance
21 struct sys_sem reader_active; /* blocks WR till reader has acquired lock */ member129 sys_sem_init(&rwl->reader_active, 1, 1); in pthread_rwlock_init()334 (void)sys_sem_give(&rwl->reader_active); in pthread_rwlock_unlock()342 (void)sys_sem_give(&rwl->reader_active); in pthread_rwlock_unlock()353 (void)sys_sem_take(&rwl->reader_active, K_NO_WAIT); in read_lock_acquire()383 if (sys_sem_take(&rwl->reader_active, k_timeout) == 0) { in write_lock_acquire()