From 74e8911f4444acf728b1925dae019a5d6fc06e3a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 23 Apr 2009 06:44:46 +0000 Subject: [PATCH] - client: When a preemptable task wasn't preempted (e.g. because it hadn't finished its time slice) we were failing to mark it as scheduled. svn path=/trunk/boinc/; revision=17860 --- checkin_notes | 8 ++++++++ client/cpu_sched.cpp | 1 + 2 files changed, 9 insertions(+) diff --git a/checkin_notes b/checkin_notes index b73dd95c38..d5dcac3705 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4132,3 +4132,11 @@ Rom 22 Apr 2009 str_util.cpp util.cpp win_util.cpp, .h + +David 22 Apr 2009 + - client: When a preemptable task wasn't preempted + (e.g. because it hadn't finished its time slice) + we were failing to mark it as scheduled. + + client/ + cpu_sched.cpp diff --git a/client/cpu_sched.cpp b/client/cpu_sched.cpp index b559f56e4b..533e566f17 100644 --- a/client/cpu_sched.cpp +++ b/client/cpu_sched.cpp @@ -975,6 +975,7 @@ bool CLIENT_STATE::enforce_schedule() { } else { atp->too_large = false; ram_left -= atp->procinfo.working_set_size_smoothed; + atp->next_scheduler_state = CPU_SCHED_SCHEDULED; } }