projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix problem with mutexes and MONOTONIC clock
[fio.git]
/
mutex.c
diff --git
a/mutex.c
b/mutex.c
index a44743745ab43d18b8342a67598b4977c1e43557..ab7dc7044aa8c8e2f549da7a5e089e9e71322717 100644
(file)
--- a/
mutex.c
+++ b/
mutex.c
@@
-72,6
+72,7
@@
struct fio_mutex *fio_mutex_init(int value)
pthread_condattr_init(&cond);
pthread_condattr_setpshared(&cond, mflag);
+ pthread_condattr_setclock(&cond, CLOCK_MONOTONIC);
pthread_cond_init(&mutex->cond, &cond);
ret = pthread_mutex_init(&mutex->lock, &attr);