From 8601826e634562ae4dad95b8dd24ebc26bd7b099 Mon Sep 17 00:00:00 2001 From: "Brian P. Hinz" Date: Wed, 24 May 2017 22:48:19 -0400 Subject: [PATCH] Name threads for easier profiling --- java/com/tigervnc/rfb/DecodeManager.java | 2 +- java/com/tigervnc/vncviewer/VncViewer.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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"); } -- 2.39.5