projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Declare 'prev' and 'this' outside the loop to avoid clang warning about 'prev' being...
[fio.git]
/
mutex.h
diff --git
a/mutex.h
b/mutex.h
index ac79dc63a6fe536f5acecc9ffd35d34bd95813b5..6fdf7c6dabceaa456d17f66040be3894c61556c8 100644
(file)
--- a/
mutex.h
+++ b/
mutex.h
@@
-8,8
+8,11
@@
struct fio_mutex {
pthread_cond_t cond;
int value;
int waiters;
+};
- int mutex_fd;
+enum {
+ FIO_MUTEX_LOCKED = 0,
+ FIO_MUTEX_UNLOCKED = 1,
};
extern struct fio_mutex *fio_mutex_init(int);