Searched refs:s_rwlock (Results 1 – 4 of 4) sorted by relevance
17 static pthread_rwlock_t s_rwlock; variable28 pthread_rwlock_rdlock(&s_rwlock); in thread_func()30 pthread_rwlock_unlock(&s_rwlock); in thread_func()46 pthread_rwlock_init(&s_rwlock, 0); in main()51 pthread_rwlock_destroy(&s_rwlock); in main()
34 static rwlock_t s_rwlock; variable130 rwlock_rdlock(&s_rwlock); in thread_func()132 rwlock_unlock(&s_rwlock); in thread_func()133 rwlock_wrlock(&s_rwlock); in thread_func()135 rwlock_unlock(&s_rwlock); in thread_func()147 rwlock_init(&s_rwlock); in main()157 rwlock_destroy(&s_rwlock); in main()
23 static pthread_rwlock_t s_rwlock; variable33 r = pthread_rwlock_rdlock(&s_rwlock); in thread_func()36 r = pthread_rwlock_unlock(&s_rwlock); in thread_func()38 r = pthread_rwlock_wrlock(&s_rwlock); in thread_func()41 r = pthread_rwlock_unlock(&s_rwlock); in thread_func()80 pthread_rwlock_init(&s_rwlock, NULL); in main()
44 static rwlock_t s_rwlock; variable144 rwlock_rdlock(&s_rwlock); in thread_func()146 rwlock_unlock(&s_rwlock); in thread_func()147 rwlock_wrlock(&s_rwlock); in thread_func()149 rwlock_unlock(&s_rwlock); in thread_func()161 rwlock_init(&s_rwlock); in main()171 rwlock_destroy(&s_rwlock); in main()