本文整理匯總了Java中android.os.HandlerThread.join方法的典型用法代碼示例。如果您正苦於以下問題:Java HandlerThread.join方法的具體用法?Java HandlerThread.join怎麽用?Java HandlerThread.join使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.os.HandlerThread
的用法示例。
在下文中一共展示了HandlerThread.join方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: stopDraw
import android.os.HandlerThread; //導入方法依賴的package包/類
private void stopDraw() {
if (this.handler != null) {
this.handler.quit();
this.handler = null;
}
if (this.mHandlerThread != null) {
HandlerThread handlerThread = this.mHandlerThread;
this.mHandlerThread = null;
try {
handlerThread.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
handlerThread.quit();
}
}
示例2: stopDraw
import android.os.HandlerThread; //導入方法依賴的package包/類
private void stopDraw() {
DrawHandler handler = this.handler;
this.handler = null;
unlockCanvasAndPost();
if (handler != null) {
handler.quit();
}
if (this.mHandlerThread != null) {
HandlerThread handlerThread = this.mHandlerThread;
this.mHandlerThread = null;
try {
handlerThread.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
handlerThread.quit();
}
}
示例3: stopDraw
import android.os.HandlerThread; //導入方法依賴的package包/類
private void stopDraw() {
if (handler != null) {
handler.quit();
handler = null;
}
if (mHandlerThread != null) {
HandlerThread handlerThread = this.mHandlerThread;
mHandlerThread = null;
try {
handlerThread.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
handlerThread.quit();
}
}
示例4: stopDraw
import android.os.HandlerThread; //導入方法依賴的package包/類
private void stopDraw() {
DrawHandler handler = this.handler;
this.handler = null;
unlockCanvasAndPost();
if (handler != null) {
handler.quit();
}
if (mHandlerThread != null) {
HandlerThread handlerThread = this.mHandlerThread;
mHandlerThread = null;
try {
handlerThread.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
handlerThread.quit();
}
}