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 )
{
super("CallWatchThread deprecated");
this.aWatchedThread = Thread.currentThread();
this.nTimeout = nTimeout;
start();

View File

@ -36,7 +36,7 @@ public class CallWatchThread extends Thread
public CallWatchThread(long nTimeout)
{
this(nTimeout, "");
this(nTimeout, "CallWatchThread");
}
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)
{
super("StreamProcessor");
m_in = in;
m_print = out;
start();

View File

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

View File

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

View File

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