Searched refs:rd_sem (Results 1 – 1 of 1) sorted by relevance
19 struct sys_sem rd_sem; member127 sys_sem_init(&rwl->rd_sem, CONCURRENT_READER_LIMIT, CONCURRENT_READER_LIMIT); in pthread_rwlock_init()338 (void)sys_sem_give(&rwl->rd_sem); in pthread_rwlock_unlock()340 if (sys_sem_count_get(&rwl->rd_sem) == CONCURRENT_READER_LIMIT) { in pthread_rwlock_unlock()354 (void)sys_sem_take(&rwl->rd_sem, K_NO_WAIT); in read_lock_acquire()