Remember to init and exit the smalloc allocator
[fio.git] / sem.h
CommitLineData
0c5b4087
JA
1#ifndef FIO_SEM_H
2#define FIO_SEM_H
3
4#include <semaphore.h>
5
6struct fio_sem {
7 sem_t sem;
8 int sem_val;
9};
10
11extern struct fio_sem *fio_sem_init(int);
12extern void fio_sem_remove(struct fio_sem *);
13extern void fio_sem_down(struct fio_sem *);
14extern void fio_sem_up(struct fio_sem *);
15
16#endif