]> git.sesse.net Git - pistorm/commitdiff
give threads titles
authorjust nine <nine@aphlor.org>
Fri, 5 Mar 2021 17:43:47 +0000 (17:43 +0000)
committerjust nine <nine@aphlor.org>
Fri, 5 Mar 2021 17:43:47 +0000 (17:43 +0000)
emulator.c
platforms/amiga/rtg/rtg-output.c

index 78de6e2f266a2e69684057e83362bbfcbc0ec9a5..3031a97e4bde079ece948a716a383694715636d6 100644 (file)
@@ -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) {
index 0020e9c283e7adf511262ff04481d6f9d4f21aa0..6f218cc797d7f7e17ca336b6b2459daaeed73f91 100644 (file)
@@ -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");
         }
     }