set names on some Java threads

Change-Id: I611821d5f84b440ba542a8d62a374df7b505de15
This commit is contained in:
Michael Stahl
2014-09-02 10:42:37 +02:00
parent c4da245214
commit 420170c8dd
6 changed files with 9 additions and 3 deletions

View File

@@ -264,6 +264,8 @@ public class LocalOfficeWindow
private CallWatchThread( long nTimeout ) private CallWatchThread( long nTimeout )
{ {
super("CallWatchThread deprecated");
this.aWatchedThread = Thread.currentThread(); this.aWatchedThread = Thread.currentThread();
this.nTimeout = nTimeout; this.nTimeout = nTimeout;
start(); start();

View File

@@ -36,7 +36,7 @@ public class CallWatchThread extends Thread
public CallWatchThread(long nTimeout) public CallWatchThread(long nTimeout)
{ {
this(nTimeout, ""); this(nTimeout, "CallWatchThread");
} }
public CallWatchThread( long nTimeout, String aTag ) public CallWatchThread( long nTimeout, String aTag )

View File

@@ -731,6 +731,8 @@ public class LocalOfficeConnection
private StreamProcessor(final java.io.InputStream in, final java.io.PrintStream out) private StreamProcessor(final java.io.InputStream in, final java.io.PrintStream out)
{ {
super("StreamProcessor");
m_in = in; m_in = in;
m_print = out; m_print = out;
start(); start();

View File

@@ -269,7 +269,7 @@ public class OOoBean
// avoid concurrent access from multiple threads // avoid concurrent access from multiple threads
final OfficeConnection iConn = getOOoConnection(); final OfficeConnection iConn = getOOoConnection();
Thread aConnectorThread = new Thread() { Thread aConnectorThread = new Thread("getServiceManager") {
@Override @Override
public void run() public void run()
{ {

View File

@@ -69,6 +69,8 @@ public class JobQueue {
Object _disposeId; Object _disposeId;
JobDispatcher(Object disposeId) { JobDispatcher(Object disposeId) {
super("JobDispatcher");
if(DEBUG) System.err.println("JobQueue$JobDispatcher.<init>:" + _threadId); if(DEBUG) System.err.println("JobQueue$JobDispatcher.<init>:" + _threadId);
_disposeId = disposeId; _disposeId = disposeId;

View File

@@ -68,7 +68,7 @@ public final class AsynchronousFinalizer {
private static final LinkedList<Job> queue = new LinkedList<Job>(); private static final LinkedList<Job> queue = new LinkedList<Job>();
static { static {
Thread t = new Thread() { Thread t = new Thread("AsynchronousFinalizer") {
@Override @Override
public void run() { public void run() {
for (;;) { for (;;) {