mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=10846
This commit is contained in:
parent
d9c2260740
commit
fc40d79af2
|
@ -8441,3 +8441,11 @@ David 6 Aug 2006
|
|||
|
||||
client/
|
||||
cpu_sched.C
|
||||
|
||||
David 6 Aug 2006
|
||||
- renamed schedule_result() to get_task()
|
||||
|
||||
client/
|
||||
client_state.h
|
||||
cpu_sched.C
|
||||
cs_apps.C
|
||||
|
|
|
@ -320,7 +320,7 @@ private:
|
|||
bool start_apps();
|
||||
bool handle_finished_apps();
|
||||
public:
|
||||
int schedule_result(RESULT*);
|
||||
ACTIVE_TASK* get_task(RESULT*);
|
||||
|
||||
// --------------- cs_benchmark.C:
|
||||
public:
|
||||
|
|
|
@ -614,7 +614,8 @@ bool CLIENT_STATE::enforce_schedule() {
|
|||
run_task = true;
|
||||
}
|
||||
if (run_task) {
|
||||
schedule_result(rp);
|
||||
atp = get_task(rp);
|
||||
atp->next_scheduler_state = CPU_SCHED_SCHEDULED;
|
||||
nrunning++;
|
||||
}
|
||||
}
|
||||
|
@ -635,7 +636,8 @@ bool CLIENT_STATE::enforce_schedule() {
|
|||
for (i=0; i<results.size(); i++) {
|
||||
RESULT* rp = results[i];
|
||||
if (rp->project->non_cpu_intensive && rp->runnable()) {
|
||||
schedule_result(rp);
|
||||
atp = get_task(rp);
|
||||
atp->next_scheduler_state = CPU_SCHED_SCHEDULED;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -222,7 +222,7 @@ int CLIENT_STATE::input_files_available(RESULT* rp, bool verify) {
|
|||
|
||||
// if there's not an active task for the result, make one
|
||||
//
|
||||
int CLIENT_STATE::schedule_result(RESULT* rp) {
|
||||
ACTIVE_TASK* CLIENT_STATE::get_task(RESULT* rp) {
|
||||
ACTIVE_TASK *atp = lookup_active_task_by_result(rp);
|
||||
if (!atp) {
|
||||
atp = new ACTIVE_TASK;
|
||||
|
@ -230,8 +230,7 @@ int CLIENT_STATE::schedule_result(RESULT* rp) {
|
|||
atp->init(rp);
|
||||
active_tasks.active_tasks.push_back(atp);
|
||||
}
|
||||
atp->next_scheduler_state = CPU_SCHED_SCHEDULED;
|
||||
return 0;
|
||||
return atp;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue