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 --- console-client/timer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'console-client/timer.c') diff --git a/console-client/timer.c b/console-client/timer.c index 69cc643d..4abe1321 100644 --- a/console-client/timer.c +++ b/console-client/timer.c @@ -91,6 +91,8 @@ timer_function (void *this_is_a_pointless_variable_with_a_rather_long_name) mach_port_t recv = mach_reply_port (); int wait = 0; + pthread_setname_np (pthread_self (), "timer"); + timer_thread = mach_thread_self (); pthread_mutex_lock (&timer_lock); -- cgit v1.2.3