]> source.dussan.org Git - tigervnc.git/commitdiff
Name threads for easier profiling
authorBrian P. Hinz <bphinz@users.sf.net>
Thu, 25 May 2017 02:48:19 +0000 (22:48 -0400)
committerBrian P. Hinz <bphinz@users.sf.net>
Thu, 25 May 2017 03:34:39 +0000 (23:34 -0400)
java/com/tigervnc/rfb/DecodeManager.java
java/com/tigervnc/vncviewer/VncViewer.java

index 98d0f63cd4c3bfd6c42f2d06875db496d82ffb48..9c7cacbbb2b92dd41bcc2e6507628d67f1f4cec7 100644 (file)
@@ -228,7 +228,7 @@ public class DecodeManager {
 
       stopRequested = false;
 
-      (thread = new Thread(this)).start();
+      (thread = new Thread(this, "Decoder Thread")).start();
     }
 
     public void stop()
index 7a7612246dbe3b93c0962010414690b9d340647a..e1234994d4cd885194d1ef44bb0931d004955602 100644 (file)
@@ -440,8 +440,7 @@ public class VncViewer extends javax.swing.JApplet
   }
 
   public void start() {
-    thread = new Thread(this);
-    thread.start();
+    (new Thread(this, "VncViewer Thread")).start();
   }
 
   public void exit(int n) {
@@ -555,6 +554,5 @@ public class VncViewer extends javax.swing.JApplet
   = new StringParameter("Config",
   "Specifies a configuration file to load.", null);
 
-  Thread thread;
   static LogWriter vlog = new LogWriter("VncViewer");
 }