- client: enforce_schedule(): if try to preempt a

process that's not running, at least mark it as preempted.
    (this should never happen in principle)
- API: compile fix for Mac

api/
    graphics2_unix.C
client/
    cpu_sched.C

svn path=/trunk/boinc/; revision=12895
This commit is contained in:
David Anderson 2007-06-11 21:56:56 +00:00
parent 52c2fe8b33
commit e8d8a28e63
4 changed files with 20 additions and 1 deletions

View File

@ -22,6 +22,11 @@ static int win_width = 600, win_height = 400;
static int clicked_button;
static int win=0;
#ifdef __APPLE__
extern void CloseWindow();
static bool need_show = false;
#endif
bool fullscreen;
static void close_window() {

View File

@ -6074,3 +6074,14 @@ David 11 June 2007
log_flags.C
lib/
parse.C,h
David 11 June 2007
- client: enforce_schedule(): if try to preempt a
process that's not running, at least mark it as preempted.
(this should never happen in principle)
- API: compile fix for Mac
api/
graphics2_unix.C
client/
cpu_sched.C

View File

@ -889,9 +889,9 @@ bool CLIENT_STATE::enforce_schedule() {
preempt_by_quit = true;
}
atp->preempt(preempt_by_quit);
atp->scheduler_state = CPU_SCHED_PREEMPTED;
break;
}
atp->scheduler_state = CPU_SCHED_PREEMPTED;
break;
case CPU_SCHED_SCHEDULED:
switch (atp->task_state()) {
@ -913,6 +913,7 @@ bool CLIENT_STATE::enforce_schedule() {
}
atp->scheduler_state = CPU_SCHED_SCHEDULED;
swap_left -= atp->procinfo.swap_size;
break;
}
}
if (action) {

View File

@ -159,6 +159,7 @@ language("Chinese", array(
site("http://boinc.equn.com/", "boinc.equn.com")
));
language("Czech", array(
site("http://www.czechnationalteam.cz/", "Czech National Team"),
site("http://www.boincteamcz.net/", "BOINC Team CZ"),
site("http://www.boinc.cz/", "www.boinc.cz")
));
@ -214,6 +215,7 @@ language("French", array(
site("http://boinc-quebec.org", "boinc-quebec.org")
));
language("German", array(
site("http://www.boinc-gemeinschaft.de/", "BOINC Gemeinschaft"),
site("http://www.swissteam.net/", "SwissTeam.net"),
site("http://www.unitedmacs.com/", "United Macs"),
site("http://www.rechenkraft.net/", "Rechenkraft"),