Jens Axboe | 243bfe1 | 2014-04-02 15:46:58 -0600 | [diff] [blame] | 1 | #ifndef FIO_LOCK_FILE_H |
| 2 | #define FIO_LOCK_FILE_H |
| 3 | |
Elliott Hughes | eda3a60 | 2017-05-19 18:53:02 -0700 | [diff] [blame] | 4 | #include "lib/types.h" |
| 5 | |
Jens Axboe | 243bfe1 | 2014-04-02 15:46:58 -0600 | [diff] [blame] | 6 | extern void fio_lock_file(const char *); |
Elliott Hughes | eda3a60 | 2017-05-19 18:53:02 -0700 | [diff] [blame] | 7 | extern bool fio_trylock_file(const char *); |
Jens Axboe | 243bfe1 | 2014-04-02 15:46:58 -0600 | [diff] [blame] | 8 | extern void fio_unlock_file(const char *); |
| 9 | |
| 10 | extern int fio_filelock_init(void); |
| 11 | extern void fio_filelock_exit(void); |
| 12 | |
| 13 | #endif |