關於ThreadLocal的一些認識

在前面講關於Handler的Looper的時候,咱們講到過Looper的獲取和設置,是經過ThreadLocal來操做的,以下:html static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>(); 在準備Looper的時候,java public static void prepare() {
相關文章
相關標籤/搜索