- ret = pthread_create(&ctx->thread_data[ctx->num_started_threads].thread,
- NULL,
- compressor_thread_proc,
- &ctx->thread_data[ctx->num_started_threads]);
- if (ret) {
- errno = ret;
- WARNING_WITH_ERRNO("Failed to create compressor thread %u of %u",
- ctx->num_started_threads + 1,
- num_threads);
+ if (!thread_create(&ctx->thread_data[ctx->num_started_threads].thread,
+ compressor_thread_proc,
+ &ctx->thread_data[ctx->num_started_threads]))
+ {