projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fio: Include support for ARM
[fio.git]
/
mutex.h
diff --git
a/mutex.h
b/mutex.h
index 40cfc1ede75430c542b0b1fc5b2d17cacfbff5e4..7be0ab1b44b7c96fa4d7be645a9ff95cc9e8a0bb 100644
(file)
--- a/
mutex.h
+++ b/
mutex.h
@@
-7,6
+7,7
@@
struct fio_mutex {
pthread_mutex_t lock;
pthread_cond_t cond;
int value;
+ int waiters;
int mutex_fd;
};
@@
-25,4
+26,9
@@
static inline struct fio_mutex *fio_mutex_rw_init(void)
return fio_mutex_init(0);
}
+static inline int fio_mutex_getval(struct fio_mutex *mutex)
+{
+ return mutex->value;
+}
+
#endif