Re: [PATCH v2] erofs-utils: lib: name worker threads erofs_compress

Gao Xiang
2026-03-16T17:00:19Z

On 2026/3/17 00:54, Nithurshen wrote:

..

> static void *worker_thread(void *arg)
> {
> @@ -9,6 +12,12 @@ static void *worker_thread(void *arg)
> struct erofs_work *work;
> void *tlsp = NULL;
>
> +#if defined(__linux__)
> + prctl(PR_SET_NAME, "erofs_compress");
> +#elif defined(__APPLE__)
> + pthread_setname_np("erofs_compress");
> +#endif

I'm not happy with this part, please read the v1 reply.