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 /pfinet/sched.c | |
parent | 7ac18bc84ae7c5a5f2f255b6d5337eb085bb86cd (diff) |
Add names to threads
Diffstat (limited to 'pfinet/sched.c')
-rw-r--r-- | pfinet/sched.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pfinet/sched.c b/pfinet/sched.c index af03ab49..5a3dd3ed 100644 --- a/pfinet/sched.c +++ b/pfinet/sched.c @@ -19,6 +19,7 @@ #include "pfinet.h" +#include <pthread.h> #include <asm/system.h> #include <linux/sched.h> #include <linux/interrupt.h> @@ -59,6 +60,8 @@ sock_wake_async (struct socket *sock, int how) void * net_bh_worker (void *arg) { + pthread_setname_np (pthread_self (), "net_bh"); + pthread_mutex_lock (&net_bh_lock); while (1) { |