mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 02:45:10 +00:00
#1240 JPEXS does not use multiple threads for decompilation on Text Search: AS2 is also multi thread now, work status improvements during search
This commit is contained in:
@@ -851,24 +851,26 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
taskThread.interrupt();
|
||||
}
|
||||
|
||||
Thread t = new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
while (!Thread.currentThread().isInterrupted()) {
|
||||
DecompilerPool d = swf.getDecompilerPool();
|
||||
statusPanel.setStatus(swf.getFileTitle() + " " + d.getStat());
|
||||
if (Configuration._debugMode.get()) {
|
||||
Thread t = new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
while (!Thread.currentThread().isInterrupted()) {
|
||||
DecompilerPool d = swf.getDecompilerPool();
|
||||
statusPanel.setStatus(swf.getFileTitle() + " " + d.getStat());
|
||||
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (InterruptedException ex) {
|
||||
break;
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (InterruptedException ex) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
t.start();
|
||||
taskThread = t;
|
||||
t.start();
|
||||
taskThread = t;
|
||||
}
|
||||
}
|
||||
|
||||
private void updateUi() {
|
||||
|
||||
Reference in New Issue
Block a user