Added millisecond-accurate timestamp to JSON output
[fio.git] / helper_thread.c
index 1befabfca7a04024bba69ee6859a73086e85cdb5..e788af5ba5d91e0fe203144c2e8f2f3765b86850 100644 (file)
@@ -148,8 +148,11 @@ int helper_thread_create(struct fio_mutex *startup_mutex, struct sk_out *sk_out)
        setup_disk_util();
 
        hd->sk_out = sk_out;
-       pthread_cond_init(&hd->cond, NULL);
-       pthread_mutex_init(&hd->lock, NULL);
+
+       ret = mutex_cond_init_pshared(&hd->lock, &hd->cond);
+       if (ret)
+               return 1;
+
        hd->startup_mutex = startup_mutex;
 
        ret = pthread_create(&hd->thread, NULL, helper_thread_main, hd);