Android Looper和Handler分析(3)
来源:未知 责任编辑:责任编辑 发表时间:2014-04-20 03:36 点击:次
// break;
//}
if (msg != null) {
if (msg.target == null) {
// No target is a magic identifier for the quit message.
return;
}
if (me.mLogging!= null) me.mLogging.println(
">>>>> Dispatching to " + msg.target + " "
+ msg.callback + ": " + msg.what
);
msg.target.dispatchMessage(msg);
if (me.mLogging!= null) me.mLogging.println(
"<<<<< Finished to " + msg.target + " "
+ msg.callback);
msg.recycle();
}
}
}
/**
* Return the Looper object associated with the current thread. Returns
* null if the calling thread is not associated with a Looper.
*/
//返回和线程相关的looper
public static final Looper myLooper() {
return (Looper)sThreadLocal.get();
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>