projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4c1fb3
)
mutex: guard pthread_condattr_setclock() by defined "have ifdef"
author
Jens Axboe
<axboe@kernel.dk>
Fri, 17 Feb 2012 12:48:08 +0000
(13:48 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 17 Feb 2012 12:48:08 +0000
(13:48 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mutex.c
patch
|
blob
|
blame
|
history
diff --git
a/mutex.c
b/mutex.c
index ff6ec73062efb4bed4c4a880c0276a263a9a722d..94e11884424cd203cd1f3357fef33250ffbd94eb 100644
(file)
--- a/
mutex.c
+++ b/
mutex.c
@@
-64,7
+64,7
@@
struct fio_mutex *fio_mutex_init(int value)
#ifdef FIO_HAVE_PSHARED_MUTEX
pthread_condattr_setpshared(&cond, PTHREAD_PROCESS_SHARED);
#endif
-#ifdef FIO_HAVE_
CLOCK_MONOTONIC
+#ifdef FIO_HAVE_
PTHREAD_CONDATTR_SETCLOCK
pthread_condattr_setclock(&cond, fio_clk_id);
#endif
pthread_cond_init(&mutex->cond, &cond);