8 * Mutexes have additional error checking. Enable to use a mutex rather than a
9 * rwlock for debugging.
11 #define RWS_ERRORCHECK 0
17 pthread_rwlock_t lock
;
21 int init_rwsem(struct rw_semaphore
*sem
);
22 int exit_rwsem(struct rw_semaphore
*sem
);
24 int down_read(struct rw_semaphore
*sem
);
25 int up_read(struct rw_semaphore
*sem
);
27 int down_write(struct rw_semaphore
*sem
);
28 int up_write(struct rw_semaphore
*sem
);
30 #endif /* _PERF_RWSEM_H */