summaryrefslogtreecommitdiff
path: root/gettime.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-08-02 11:21:36 +0200
committerJens Axboe <axboe@kernel.dk>2012-08-02 11:21:36 +0200
commit521da527743088a9bd2ab882f8b64799d49d5848 (patch)
tree1844b18249229e13b3da133cc11552c29dd7cda8 /gettime.c
parent9ec7779f89d4dde9fe1e23d68abaefda54b35de7 (diff)
downloadfio-521da527743088a9bd2ab882f8b64799d49d5848.tar.gz
fio-521da527743088a9bd2ab882f8b64799d49d5848.tar.bz2
mutex: make 0/1 FIO_MUTEX_LOCKED and FIO_MUTEX_UNLOCKED
Makes the API look cleaner. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'gettime.c')
-rw-r--r--gettime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettime.c b/gettime.c
index e8f5ab55..5b492875 100644
--- a/gettime.c
+++ b/gettime.c
@@ -304,7 +304,7 @@ int fio_start_gtod_thread(void)
pthread_attr_t attr;
int ret;
- mutex = fio_mutex_init(0);
+ mutex = fio_mutex_init(FIO_MUTEX_LOCKED);
if (!mutex)
return 1;