private void updateProgress() { if (mBasicProgress) { synchronized (mJobs) { mTotalJobsFinished++; final String message = mThreadPoolName + ": " + mTotalJobsFinished + "/" + mTotalJobs + " Jobs Finished"; Diagnostic.progress(message); Diagnostic.developerLog(message); } } }
/** * Enable the basic progress output with the total number of jobs that this thread pool will * process. * * @param totalJobs the total number of jobs this thread pool will be processing. */ public void enableBasicProgress(long totalJobs) { mTotalJobs = totalJobs; mBasicProgress = true; Diagnostic.progress(mThreadPoolName + ": Starting " + mTotalJobs + " Jobs"); }