When retrieving a requeued IO, don't setup data pointers again
[fio.git] / mutex.h
CommitLineData
07739b57
JA
1#ifndef FIO_MUTEX_H
2#define FIO_MUTEX_H
3
4#include <pthread.h>
5
cdd18ad8 6struct fio_mutex {
07739b57
JA
7 pthread_mutex_t lock;
8 pthread_cond_t cond;
9 unsigned int value;
10
cdd18ad8 11 int mutex_fd;
07739b57
JA
12};
13
cdd18ad8
JA
14extern struct fio_mutex *fio_mutex_init(int);
15extern void fio_mutex_remove(struct fio_mutex *);
af4bab56
JA
16extern void fio_mutex_down(struct fio_mutex *);
17extern void fio_mutex_up(struct fio_mutex *);
07739b57
JA
18
19#endif