Searched refs:r_lock (Results 1 – 1 of 1) sorted by relevance
31 sem_t r_lock, w_lock; variable51 if (-1 == sem_wait(&r_lock)) { in reader()63 if (-1 == sem_post(&r_lock)) { in reader()69 if (-1 == sem_wait(&r_lock)) { in reader()80 if (-1 == sem_post(&r_lock)) { in reader()121 if (-1 == sem_init(&r_lock, shared, r_value)) { in main()144 if (-1 == sem_destroy(&r_lock)) { in main()