mirror of https://github.com/BOINC/boinc.git
parent
f15b50a7c5
commit
e25efc24da
|
@ -48,7 +48,7 @@ class CLIENT_STATE;
|
||||||
class ACTIVE_TASK {
|
class ACTIVE_TASK {
|
||||||
public:
|
public:
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
HANDLE pid_handle;
|
HANDLE pid_handle,thread_handle;
|
||||||
#endif
|
#endif
|
||||||
RESULT* result;
|
RESULT* result;
|
||||||
WORKUNIT* wup;
|
WORKUNIT* wup;
|
||||||
|
|
|
@ -110,12 +110,12 @@ int PROJECT::parse_state(FILE* in) {
|
||||||
else if (parse_str(buf, "<user_name>", user_name, sizeof(user_name))) continue;
|
else if (parse_str(buf, "<user_name>", user_name, sizeof(user_name))) continue;
|
||||||
else if (parse_double(buf, "<user_total_credit>", user_total_credit)) continue;
|
else if (parse_double(buf, "<user_total_credit>", user_total_credit)) continue;
|
||||||
else if (parse_double(buf, "<user_expavg_credit>", user_expavg_credit)) continue;
|
else if (parse_double(buf, "<user_expavg_credit>", user_expavg_credit)) continue;
|
||||||
else if (parse_int(buf, "<user_create_time>", (int)user_create_time)) continue;
|
else if (parse_int(buf, "<user_create_time>", (int &)user_create_time)) continue;
|
||||||
else if (parse_int(buf, "<rpc_seqno>", rpc_seqno)) continue;
|
else if (parse_int(buf, "<rpc_seqno>", rpc_seqno)) continue;
|
||||||
else if (parse_int(buf, "<hostid>", hostid)) continue;
|
else if (parse_int(buf, "<hostid>", hostid)) continue;
|
||||||
else if (parse_double(buf, "<host_total_credit>", host_total_credit)) continue;
|
else if (parse_double(buf, "<host_total_credit>", host_total_credit)) continue;
|
||||||
else if (parse_double(buf, "<host_expavg_credit>", host_expavg_credit)) continue;
|
else if (parse_double(buf, "<host_expavg_credit>", host_expavg_credit)) continue;
|
||||||
else if (parse_int(buf, "<host_create_time>", (int)host_create_time)) continue;
|
else if (parse_int(buf, "<host_create_time>", (int &)host_create_time)) continue;
|
||||||
else if (parse_double(buf, "<exp_avg_cpu>", exp_avg_cpu)) continue;
|
else if (parse_double(buf, "<exp_avg_cpu>", exp_avg_cpu)) continue;
|
||||||
else if (parse_int(buf, "<exp_avg_mod_time>", exp_avg_mod_time)) continue;
|
else if (parse_int(buf, "<exp_avg_mod_time>", exp_avg_mod_time)) continue;
|
||||||
else if (match_tag(buf, "<code_sign_key>")) {
|
else if (match_tag(buf, "<code_sign_key>")) {
|
||||||
|
|
|
@ -410,7 +410,7 @@ int SCHEDULER_REPLY::parse(FILE* in) {
|
||||||
continue;
|
continue;
|
||||||
} else if (parse_double(buf, "<user_expavg_credit>", user_expavg_credit)) {
|
} else if (parse_double(buf, "<user_expavg_credit>", user_expavg_credit)) {
|
||||||
continue;
|
continue;
|
||||||
} else if (parse_int(buf, "<user_create_time>", (int)user_create_time)) {
|
} else if (parse_int(buf, "<user_create_time>", (int &)user_create_time)) {
|
||||||
continue;
|
continue;
|
||||||
} else if (parse_int(buf, "<hostid>", hostid)) {
|
} else if (parse_int(buf, "<hostid>", hostid)) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -418,7 +418,7 @@ int SCHEDULER_REPLY::parse(FILE* in) {
|
||||||
continue;
|
continue;
|
||||||
} else if (parse_double(buf, "<host_expavg_credit>", host_expavg_credit)) {
|
} else if (parse_double(buf, "<host_expavg_credit>", host_expavg_credit)) {
|
||||||
continue;
|
continue;
|
||||||
} else if (parse_int(buf, "<host_create_time>", (int)host_create_time)) {
|
} else if (parse_int(buf, "<host_create_time>", (int &)host_create_time)) {
|
||||||
continue;
|
continue;
|
||||||
} else if (parse_int(buf, "<request_delay>", request_delay)) {
|
} else if (parse_int(buf, "<request_delay>", request_delay)) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -94,7 +94,9 @@ int main() {
|
||||||
boinc_sleep(1);
|
boinc_sleep(1);
|
||||||
}
|
}
|
||||||
nxs.remove(nxp);
|
nxs.remove(nxp);
|
||||||
if (nxp->file) fclose(nxp->file);
|
if (nxp->file) {
|
||||||
|
fclose(nxp->file);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue