14 pthread_rwlock_t lock;
19 FIO_MUTEX_UNLOCKED = 1,
22 extern struct fio_mutex *fio_mutex_init(int);
23 extern void fio_mutex_remove(struct fio_mutex *);
24 extern void fio_mutex_up(struct fio_mutex *);
25 extern void fio_mutex_down(struct fio_mutex *);
26 extern int fio_mutex_down_timeout(struct fio_mutex *, unsigned int);
28 extern void fio_rwlock_read(struct fio_rwlock *);
29 extern void fio_rwlock_write(struct fio_rwlock *);
30 extern void fio_rwlock_unlock(struct fio_rwlock *);
31 extern struct fio_rwlock *fio_rwlock_init(void);
32 extern void fio_rwlock_remove(struct fio_rwlock *);