projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -Wdeclaration-after-statement to compiler flags
[fio.git]
/
mutex.h
diff --git
a/mutex.h
b/mutex.h
index 49a66e361bc52ed7c09328578dc4a912ec1c4e83..4f3486df7a3b01163515cd548678445d7e40b924 100644
(file)
--- a/
mutex.h
+++ b/
mutex.h
@@
-3,15
+3,20
@@
#include <pthread.h>
#include <pthread.h>
+#define FIO_MUTEX_MAGIC 0x4d555445U
+#define FIO_RWLOCK_MAGIC 0x52574c4fU
+
struct fio_mutex {
pthread_mutex_t lock;
pthread_cond_t cond;
int value;
int waiters;
struct fio_mutex {
pthread_mutex_t lock;
pthread_cond_t cond;
int value;
int waiters;
+ int magic;
};
struct fio_rwlock {
pthread_rwlock_t lock;
};
struct fio_rwlock {
pthread_rwlock_t lock;
+ int magic;
};
enum {
};
enum {