首先Looper对象会保存一个与之关联的线程的引用看代码:mThread = Thread. currentThread () ;
然后呢,再把自己变成线程的局部变量
static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>();
··· sThreadLocal.set(new Looper(quitAllowed));
这样它们就关联起来了
然后呢,再把自己变成线程的局部变量
static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>();
··· sThreadLocal.set(new Looper(quitAllowed));
这样它们就关联起来了