threadwatch.java

来自「jpeg2000编解码」· Java 代码 · 共 26 行

JAVA
26
字号
package gui;/**  * This class is used to watch a thread termination (for instance * Decoder or Encoder instance) and finally notifies the ThreadSurvey * instance. */public class ThreadWatch implements Runnable {    /** Reference to the object using this ThreadWatch */    private ThreadSurvey src = null;    /** Reference to the thread to watch */    private Thread thread = null;    /** Class constructor */    public ThreadWatch(ThreadSurvey src,Thread thread) {	this.src = src;	this.thread = thread;    }        /** Thread's starting method */    public void run() {	thread.run();	src.terminatedThread();    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?