lulinan

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年8月3日

摘要: AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers.AsyncTask是一个异步执行任务。AsyncTask is designed to be a helper class aroundThreadandHandlerand does not consti 阅读全文
posted @ 2013-08-03 16:56 lulinan 阅读(132) 评论(0) 推荐(0)

摘要: universal-image-loader使用总结待补充 阅读全文
posted @ 2013-08-03 16:55 lulinan 阅读(146) 评论(0) 推荐(0)

摘要: 一个可重入的互斥锁定Lock,它具有与使用synchronized方法和语句所访问的隐式监视器锁定相同的一些基本行为和语义,但功能更强大。ReentrantLock将由最近成功获得锁定,并且还没有释放该锁定的线程所拥有。当锁定没有被另一个线程所拥有时,调用lock()的线程将成功获取该锁定并返回。如果当前线程已经拥有该锁定,此方法将立即返回。可以使用isHeldByCurrentThread()和getHoldCount()方法来检查此情况是否发生。lock()方法如下执行:如果该锁定没有被另一个线程保持,则获取该锁定并立即返回,将锁定的保持计数设置为1。如果当前线程已经保持该锁定,则将保持计 阅读全文
posted @ 2013-08-03 16:52 lulinan 阅读(292) 评论(0) 推荐(0)