Code example for ReentrantLock

0
 * User: qii 
 * Date: 13-5-15 
 */ 
public class DMUserLoader extends AbstractAsyncNetRequestTaskLoader<DMUserListBean> { 
 
    private static Lock lock = new ReentrantLock();
 
    private String token;
    private String cursor;
 
    public DMUserLoader(Context context, String token, String cursor) {
        super(context);
        this.token = token;
        this.cursor = cursor;
    } 
 
 
    public DMUserListBean loadData() throws WeiboException { 
        DMDao dao = new DMDao(token);
        dao.setCursor(cursor);