summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorBrian P. Hinz <bphinz@users.sf.net>2017-05-24 22:48:19 -0400
committerBrian P. Hinz <bphinz@users.sf.net>2017-05-24 23:34:39 -0400
commit8601826e634562ae4dad95b8dd24ebc26bd7b099 (patch)
tree13a71765b0b3f224db4cb5fd16274ecfc8ea8988 /java
parent93c1203f85d89fc2530785198977ab888c05c298 (diff)
downloadtigervnc-8601826e634562ae4dad95b8dd24ebc26bd7b099.tar.gz
tigervnc-8601826e634562ae4dad95b8dd24ebc26bd7b099.zip
Name threads for easier profiling
Diffstat (limited to 'java')
-rw-r--r--java/com/tigervnc/rfb/DecodeManager.java2
-rw-r--r--java/com/tigervnc/vncviewer/VncViewer.java4
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");
}