- client: test the above; compile fixes for Win

svn path=/trunk/boinc/; revision=15290
This commit is contained in:
David Anderson 2008-05-23 22:20:45 +00:00
parent 18d6f5e708
commit ac77678d16
4 changed files with 12 additions and 8 deletions

View File

@ -4307,3 +4307,11 @@ David May 23 2008
cpu_sched.C
lib/
coproc.h
David May 23 2008
- client: test the above; compile fixes for Win
client/
client_types.h
cpu_sched.C
sim_util.C

View File

@ -178,8 +178,8 @@ struct RR_SIM_PROJECT_STATUS {
inline bool none_active() {
return !active.size();
}
inline bool can_run(RESULT* p, int ncpus) {
return active.size() < (int)ncpus;
inline bool can_run(RESULT*, int ncpus) {
return (int)active.size() < ncpus;
}
inline void remove_active(RESULT* r) {
std::vector<RESULT*>::iterator it = active.begin();

View File

@ -579,7 +579,7 @@ void CLIENT_STATE::schedule_cpus() {
double expected_payoff;
unsigned int i;
double rrs = runnable_resource_share();
double ncpus_used;
double ncpus_used = 0;
if (log_flags.cpu_sched_debug) {
msg_printf(0, MSG_INFO, "[cpu_sched_debug] schedule_cpus(): start");
@ -620,7 +620,6 @@ void CLIENT_STATE::schedule_cpus() {
#ifdef SIM
if (!cpu_sched_rr_only) {
#endif
ncpus_used = 0;
while (ncpus_used < ncpus) {
rp = earliest_deadline_result();
if (!rp) break;
@ -1144,7 +1143,6 @@ void CLIENT_STATE::rr_simulation() {
RESULT* rp, *rpbest;
RR_SIM_STATUS sim_status;
unsigned int i;
double x;
sim_status.coprocs.clone(coprocs);
double ar = available_ram();

View File

@ -156,9 +156,7 @@ void SIM_PROJECT::init() {
project_files_downloaded_time = 0;
// Initialize scratch variables.
rrsim_proc_rate = 0.0;
cpu_shortfall = 0.0;
rr_sim_deadlines_missed = 0;
rr_sim_status.clear();
deadlines_missed = 0;
// sim-specific: