From 883af6aa527c4d0b43adc99c19e1cbb53153a7a0 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 8 Feb 2025 21:25:55 +0100 Subject: Add names to threads --- tmpfs/tmpfs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tmpfs/tmpfs.c') diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c index d28806a3..08356803 100644 --- a/tmpfs/tmpfs.c +++ b/tmpfs/tmpfs.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "tmpfs.h" #include @@ -297,6 +298,8 @@ diskfs_thread_function (void *demuxer) static int thread_timeout = 1000 * 60 * 2; /* two minutes */ error_t err; + pthread_setname_np (pthread_self (), "diskfs"); + do { ports_manage_port_operations_multithread (diskfs_port_bucket, -- cgit v1.2.3