From d83b882851d4dbc7ff414867a3dc142726d555d9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 6 Sep 2012 19:41:49 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=26077 --- sched/sched_version.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sched/sched_version.cpp b/sched/sched_version.cpp index d3007b9da4..6cbdc2f32a 100644 --- a/sched/sched_version.cpp +++ b/sched/sched_version.cpp @@ -413,12 +413,20 @@ static double max_32b_address_space() { // - if plan class, check if this host can handle it // - check if we need work for the resource // +// If all these are satisfied, return a pointer to a BEST_APP_VERSION struct +// with HOST_USAGE filled in correctly. +// Else return NUL. +// static BEST_APP_VERSION* check_homogeneous_app_version( WORKUNIT& wu, bool /* reliable_only */ // TODO: enforce reliable_only ) { - static BEST_APP_VERSION bav_static; BEST_APP_VERSION bav; + // this will get initialized on every call, + // i.e. HOST_USAGE will get cleared + static BEST_APP_VERSION bav_static; + // we'll return a pointer to this struct; + // copy bav here before returning bool found; APP_VERSION *avp = ssp->lookup_app_version(wu.app_version_id);