- ret = pthread_condattr_init(&cattr);
- if (ret) {
- td_verror(td, ret, "pthread_condattr_init");
- goto err;
- }
- ret = pthread_mutexattr_init(&mattr);
- if (ret) {
- td_verror(td, ret, "pthread_mutexattr_init");
- goto err;
- }
-#ifdef FIO_HAVE_PSHARED_MUTEX
- ret = pthread_condattr_setpshared(&cattr, PTHREAD_PROCESS_SHARED);
- if (ret) {
- td_verror(td, ret, "pthread_condattr_setpshared");