Home
last modified time | relevance | path

Searched refs:r_lock (Results 1 – 1 of 1) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/functional/semaphores/
Dsem_readerwriter.c31 sem_t r_lock, w_lock; variable
51 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()