From 0b17ded2ca98db1a8379f22ae5e44ba628771142 Mon Sep 17 00:00:00 2001 From: just nine Date: Fri, 5 Mar 2021 17:43:47 +0000 Subject: [PATCH] give threads titles --- emulator.c | 6 ++++-- platforms/amiga/rtg/rtg-output.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/emulator.c b/emulator.c index 78de6e2..3031a97 100644 --- a/emulator.c +++ b/emulator.c @@ -334,9 +334,11 @@ int main(int argc, char *argv[]) { int err; err = pthread_create(&id, NULL, &iplThread, NULL); if (err != 0) - printf("can't create IPL thread :[%s]", strerror(err)); - else + printf("can't create IPL thread: [%s]", strerror(err)); + else { + pthread_setname_np(id, "pistorm: ipl"); printf("IPL Thread created successfully\n"); + } m68k_pulse_reset(); while (42) { diff --git a/platforms/amiga/rtg/rtg-output.c b/platforms/amiga/rtg/rtg-output.c index 0020e9c..6f218cc 100644 --- a/platforms/amiga/rtg/rtg-output.c +++ b/platforms/amiga/rtg/rtg-output.c @@ -229,6 +229,7 @@ void rtg_init_display() { } else { rtg_initialized = 1; + pthread_setname_np(thread_id, "pistorm: rtg"); printf("RTG Thread created successfully\n"); } } -- 2.39.2