📄 aethread.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: AEThread.java
package org.gudy.azureus2.core3.util;
import java.util.WeakHashMap;
// Referenced classes of package org.gudy.azureus2.core3.util:
// AEThread2, DebugLight
/**
* @deprecated Class AEThread is deprecated
*/
public abstract class AEThread extends Thread
{
private static WeakHashMap our_thread_map = new WeakHashMap();
public AEThread(String name)
{
super(name);
setDaemon(false);
}
public AEThread(String name, boolean daemon)
{
super(name);
setDaemon(daemon);
}
public void run()
{
try
{
runSupport();
}
catch (Throwable e)
{
DebugLight.printStackTrace(e);
}
}
public abstract void runSupport();
public static boolean isOurThread(Thread thread)
{
if (thread instanceof AEThread)
return true;
WeakHashMap weakhashmap = our_thread_map;
JVM INSTR monitorenter ;
return our_thread_map.get(thread) != null;
Exception exception;
exception;
throw exception;
}
public static void setOurThread()
{
setOurThread(Thread.currentThread());
}
public static void setOurThread(Thread thread)
{
if ((thread instanceof AEThread) || (thread instanceof AEThread2.threadWrapper))
return;
synchronized (our_thread_map)
{
our_thread_map.put(thread, "");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -