diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-08 21:25:55 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-08 21:25:55 +0100 |
commit | 883af6aa527c4d0b43adc99c19e1cbb53153a7a0 (patch) | |
tree | ab4170eae8919f11855e3b8a69f13457b4fa601d /tmpfs/tmpfs.c | |
parent | 7ac18bc84ae7c5a5f2f255b6d5337eb085bb86cd (diff) |
Add names to threads
Diffstat (limited to 'tmpfs/tmpfs.c')
-rw-r--r-- | tmpfs/tmpfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <string.h> #include <inttypes.h> #include <error.h> +#include <pthread.h> #include "tmpfs.h" #include <limits.h> @@ -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, |