compile fixes

svn path=/trunk/boinc/; revision=14967
This commit is contained in:
David Anderson 2008-03-27 18:35:57 +00:00
parent 13400c9516
commit a55712dde0
2 changed files with 3 additions and 2 deletions

View File

@ -473,6 +473,7 @@ void CLIENT_STATE::schedule_cpus() {
double expected_pay_off; double expected_pay_off;
unsigned int i; unsigned int i;
double rrs = runnable_resource_share(); double rrs = runnable_resource_share();
double ncpus_used;
if (log_flags.cpu_sched_debug) { if (log_flags.cpu_sched_debug) {
msg_printf(0, MSG_INFO, "[cpu_sched_debug] schedule_cpus(): start"); msg_printf(0, MSG_INFO, "[cpu_sched_debug] schedule_cpus(): start");
@ -513,7 +514,7 @@ void CLIENT_STATE::schedule_cpus() {
#ifdef SIM #ifdef SIM
if (!cpu_sched_rr_only) { if (!cpu_sched_rr_only) {
#endif #endif
double ncpus_used = 0; ncpus_used = 0;
while (ncpus_used < ncpus) { while (ncpus_used < ncpus) {
rp = earliest_deadline_result(); rp = earliest_deadline_result();
if (!rp) break; if (!rp) break;

View File

@ -177,7 +177,7 @@ private:
bool enforce_schedule(); bool enforce_schedule();
bool no_work_for_a_cpu(); bool no_work_for_a_cpu();
void rr_simulation(); void rr_simulation();
void make_running_task_heap(vector<ACTIVE_TASK*>&); void make_running_task_heap(vector<ACTIVE_TASK*>&, double&);
void print_deadline_misses(); void print_deadline_misses();
public: public:
double retry_shmem_time; double retry_shmem_time;