const char *filename)
{
struct io_log *l;
- pthread_mutexattr_t mattr;
l = scalloc(1, sizeof(*l));
INIT_FLIST_HEAD(&l->io_logs);
if (l->log_gz && !p->td)
l->log_gz = 0;
else if (l->log_gz || l->log_gz_store) {
- pthread_mutexattr_init(&mattr);
-#ifdef FIO_HAVE_PSHARED_MUTEX
- pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED);
-#endif
- pthread_mutex_init(&l->chunk_lock, &mattr);
+ mutex_init_pshared(&l->chunk_lock);
p->td->flags |= TD_F_COMPRESS_LOG;
}