public void destroy() {
        if (DEBUG) {
            CLog.d(LOG_TAG, "work_status: destroy %s", this);
        }
        mExitTasksEarly = true;
        setPause(false);

        Iterator<Entry<String, LoadImageTask>> it = (Iterator<Entry<String, LoadImageTask>>) mLoadWorkList.entrySet().iterator();
        while (it.hasNext()) {
            Entry<String, LoadImageTask> item = it.next();
            final LoadImageTask task = item.getValue();
            it.remove();
            if (task != null) {
                task.cancel();
            }
        }
        mLoadWorkList.clear();
    }
public void destroy() {
        if (DEBUG) {
            CLog.d(LOG_TAG, "work_status: destroy %s", this);
        }
        mExitTasksEarly = true;
        setPause(false);

        Iterator<Entry<String, LoadImageTask>> it = (Iterator<Entry<String, LoadImageTask>>) mLoadWorkList.entrySet().iterator();
        while (it.hasNext()) {
            Entry<String, LoadImageTask> item = it.next();
            final LoadImageTask task = item.getValue();
            it.remove();
            if (task != null) {
                task.cancel();
            }
        }
        mLoadWorkList.clear();
    }
public void destroy ( ) { if ( DEBUG ) { CLog . d ( LOG_TAG , "work_status: destroy %s" , this ) ; } mExitTasksEarly = true ; setPause ( false ) ; Iterator < Entry < String , LoadImageTask > > it = ( Iterator < Entry < String , LoadImageTask > > ) mLoadWorkList . entrySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Entry < String , LoadImageTask > item = it . next ( ) ; final LoadImageTask task = item . getValue ( ) ; it . remove ( ) ; if ( task != null ) { task . cancel ( ) ; } } mLoadWorkList . clear ( ) ; }
Drop all the work, clear the work list.
Drop all the work clear the work list .