mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=365
This commit is contained in:
parent
51cf739dfd
commit
eadede3a91
|
@ -331,7 +331,7 @@ int ACTIVE_TASK::start(bool first_time) {
|
|||
0,
|
||||
NULL
|
||||
);
|
||||
fprintf(stdout, "CreateProcess: %s\n", (LPCTSTR)lpMsgBuf);
|
||||
fprintf(stdout, "CreateProcess: %s\n", (LPCTSTR)lpMsgBuf);
|
||||
}
|
||||
pid_handle = process_info.hProcess;
|
||||
|
||||
|
|
|
@ -837,3 +837,7 @@ bool CLIENT_STATE::time_to_exit() {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void CLIENT_STATE::set_client_state_dirty() {
|
||||
client_state_dirty = true;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,6 @@ public:
|
|||
void update_net_stats(bool is_upload, double nbytes, double nsecs);
|
||||
int insert_file_xfer( FILE_XFER *fxp );
|
||||
unsigned int giveup_after;
|
||||
bool client_state_dirty;
|
||||
|
||||
vector<PROJECT*> projects;
|
||||
vector<APP*> apps;
|
||||
|
@ -68,6 +67,7 @@ public:
|
|||
HOST_INFO host_info;
|
||||
PREFS* prefs;
|
||||
private:
|
||||
bool client_state_dirty;
|
||||
TIME_STATS time_stats;
|
||||
NET_STATS net_stats;
|
||||
int version;
|
||||
|
@ -114,6 +114,7 @@ public:
|
|||
double work_needed_secs();
|
||||
int make_scheduler_request(PROJECT*, double);
|
||||
void handle_scheduler_reply(PROJECT*, char* scheduler_url);
|
||||
void set_client_state_dirty();
|
||||
private:
|
||||
PROJECT* find_project_with_overdue_results();
|
||||
bool some_project_rpc_ok();
|
||||
|
|
|
@ -73,7 +73,7 @@ bool CLIENT_STATE::handle_running_apps() {
|
|||
app_finished(*atp);
|
||||
active_tasks.remove(atp);
|
||||
delete atp;
|
||||
client_state_dirty = true;
|
||||
set_client_state_dirty();
|
||||
action = true;
|
||||
}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ bool CLIENT_STATE::start_apps() {
|
|||
atp->init(rp);
|
||||
active_tasks.insert(atp);
|
||||
action = true;
|
||||
client_state_dirty = true;
|
||||
set_client_state_dirty();
|
||||
app_started = time(0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -361,7 +361,7 @@ bool CLIENT_STATE::get_work() {
|
|||
break;
|
||||
} else {
|
||||
handle_scheduler_reply(*scheduler_op);
|
||||
client_state_dirty = true;
|
||||
set_client_state_dirty();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -258,7 +258,7 @@ bool PERS_FILE_XFER_SET::poll() {
|
|||
action |= pers_file_xfers[i]->poll(now);
|
||||
}
|
||||
|
||||
if (action) gstate.client_state_dirty = true;
|
||||
if (action) gstate.set_client_state_dirty();
|
||||
|
||||
return action;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue