예제 #1
0
파일: CJob.cs 프로젝트: john32b/cdcrush.net
        }// -----------------------------------------

        // End a task properly
        // Task has either Completed or Failed
        private void killTask(CTask t)
        {
            TASKS_RUNNING--;
            slots_active[t.SLOT]   = false;
            slots_progress[t.SLOT] = -1;
            if (!t.FLAG_PROGRESS_DISABLE)
            {
                TASKS_COMPLETED_PROGRESS += TASK_PROGRESS_RATIO * 100;
            }
            currentTasks.Remove(t);
            t.kill();
        }// -----------------------------------------
예제 #2
0
        }// -----------------------------------------

        // End a task properly
        // Task has either Completed or Failed
        private void killTask(CTask t)
        {
            slots[t.SLOT] = false;
            currentTasks.Remove(t);
            t.kill();
        }// -----------------------------------------