mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=11886
This commit is contained in:
parent
872945e933
commit
829c5b4e82
|
@ -662,3 +662,11 @@ Rom 16 Jan 2007
|
|||
|
||||
clientgui/
|
||||
sg_ProjectsComponent.cpp
|
||||
|
||||
David 16 Jan 2007
|
||||
- core client: don't try to schedule a task whose state is
|
||||
PROCESS_ABORT_PENDING.
|
||||
|
||||
client/
|
||||
app.h
|
||||
cpu_sched.C
|
||||
|
|
|
@ -145,6 +145,7 @@ public:
|
|||
void check_graphics_mode_ack();
|
||||
int link_user_files();
|
||||
int get_shmem_seg_name();
|
||||
bool runnable() { return task_state != PROCESS_ABORT_PENDING; }
|
||||
|
||||
ACTIVE_TASK();
|
||||
~ACTIVE_TASK();
|
||||
|
|
|
@ -89,6 +89,9 @@ static bool more_preemptable(ACTIVE_TASK* t0, ACTIVE_TASK* t1) {
|
|||
// 3. results with active tasks that have no process
|
||||
// 4. results with no active task
|
||||
//
|
||||
// TODO: this is called in a loop over NCPUs, which is silly.
|
||||
// Should call it once, and have it make an ordered list per project.
|
||||
//
|
||||
void CLIENT_STATE::assign_results_to_projects() {
|
||||
unsigned int i;
|
||||
RESULT* rp;
|
||||
|
@ -98,6 +101,7 @@ void CLIENT_STATE::assign_results_to_projects() {
|
|||
//
|
||||
for (i=0; i<active_tasks.active_tasks.size(); i++) {
|
||||
ACTIVE_TASK *atp = active_tasks.active_tasks[i];
|
||||
if (!atp->runnable()) continue;
|
||||
rp = atp->result;
|
||||
if (rp->already_selected) continue;
|
||||
if (!rp->runnable()) continue;
|
||||
|
|
Loading…
Reference in New Issue