flags a task as done . concode_field_sep int spiderTasksDone concode_elem_sep Map blocked concode_elem_sep Set assignedSpiderTasks concode_elem_sep Set assignedThinkerTasks concode_elem_sep List thinkerTasks concode_elem_sep int blockedCount concode_elem_sep int thinkerTasksDone concode_elem_sep List fetchTasks concode_field_sep int getJobCount concode_elem_sep int getBlockedCount concode_elem_sep boolean allTasksDone concode_elem_sep WorkerTask getThinkerTask concode_elem_sep DecideOnSpideringTask[] unblock concode_elem_sep void schedule concode_elem_sep int getJobsDone concode_elem_sep WorkerTask getFethTask concode_elem_sep int getThinkerJobCount concode_elem_sep int getSpiderJobCount concode_elem_sep void block concode_elem_sep int getAssignedCount concode_elem_sep int getThinkerJobsDone concode_elem_sep int getSpiderJobsDone
void function ( WorkerTask arg0 ) { if ( arg0 . getType ( ) == WorkerTask . WORKERTASK_THINKERTASK ) { assignedThinkerTasks . remove ( arg0 ) ; thinkerTasksDone ++ ; } else { assignedSpiderTasks . remove ( arg0 ) ; spiderTasksDone ++ ; } }