From: Brian P. Hinz Date: Thu, 25 May 2017 02:48:19 +0000 (-0400) Subject: Name threads for easier profiling X-Git-Tag: v1.8.90~143 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8601826e634562ae4dad95b8dd24ebc26bd7b099;p=tigervnc.git Name threads for easier profiling --- diff --git a/java/com/tigervnc/rfb/DecodeManager.java b/java/com/tigervnc/rfb/DecodeManager.java index 98d0f63c..9c7cacbb 100644 --- a/java/com/tigervnc/rfb/DecodeManager.java +++ b/java/com/tigervnc/rfb/DecodeManager.java @@ -228,7 +228,7 @@ public class DecodeManager { stopRequested = false; - (thread = new Thread(this)).start(); + (thread = new Thread(this, "Decoder Thread")).start(); } public void stop() diff --git a/java/com/tigervnc/vncviewer/VncViewer.java b/java/com/tigervnc/vncviewer/VncViewer.java index 7a761224..e1234994 100644 --- a/java/com/tigervnc/vncviewer/VncViewer.java +++ b/java/com/tigervnc/vncviewer/VncViewer.java @@ -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"); }