Searched refs:wr_sem (Results 1 – 1 of 1) sorted by relevance
20 struct sys_sem wr_sem; member128 sys_sem_init(&rwl->wr_sem, 1, 1); in pthread_rwlock_init()335 (void)sys_sem_give(&rwl->wr_sem); in pthread_rwlock_unlock()352 if (sys_sem_take(&rwl->wr_sem, SYS_TIMEOUT_MS(timeout)) == 0) { in read_lock_acquire()355 (void)sys_sem_give(&rwl->wr_sem); in read_lock_acquire()372 if (sys_sem_take(&rwl->wr_sem, k_timeout) == 0) { in write_lock_acquire()386 (void)sys_sem_give(&rwl->wr_sem); in write_lock_acquire()