6 #define FIO_MUTEX_MAGIC 0x4d555445U
7 #define FIO_RWLOCK_MAGIC 0x52574c4fU
18 pthread_rwlock_t lock;
24 FIO_MUTEX_UNLOCKED = 1,
27 extern struct fio_mutex *fio_mutex_init(int);
28 extern void fio_mutex_remove(struct fio_mutex *);
29 extern void fio_mutex_up(struct fio_mutex *);
30 extern void fio_mutex_down(struct fio_mutex *);
31 extern int fio_mutex_down_timeout(struct fio_mutex *, unsigned int);
33 extern void fio_rwlock_read(struct fio_rwlock *);
34 extern void fio_rwlock_write(struct fio_rwlock *);
35 extern void fio_rwlock_unlock(struct fio_rwlock *);
36 extern struct fio_rwlock *fio_rwlock_init(void);
37 extern void fio_rwlock_remove(struct fio_rwlock *);