Rom 19 Apr 2007

- Fix a minor compile problem on 64-bit Windows platforms with the
        call to SetTimer.
    - fixes #80: Introduce the notion of an alternate platform for 64-bit
        Windows clients, which can also run 32-bit Windows apps.
        
      TODO: We'll need to refactor the whole platform section in the
        scheduler request creation section so that it can handle
        multiple alternate platforms and for Linux/Mac.
        
    api/
        windows_opengl.C
    client/
        client_state.C, .h
        cpp.h
        cs_scheduler.C

svn path=/trunk/boinc/; revision=12421
This commit is contained in:
Rom Walton 2007-04-19 20:53:16 +00:00
parent f198d8c78e
commit ac6974b62b
6 changed files with 31 additions and 2 deletions

View File

@ -510,7 +510,7 @@ void win_graphics_event_loop() {
//
reg_win_class();
gfx_timer_id = SetTimer(NULL, 1, 30, &timer_handler);
gfx_timer_id = SetTimer(NULL, 1, 30, (TIMERPROC)&timer_handler);
if (boinc_is_standalone()) {
set_mode(MODE_WINDOW);

View File

@ -3752,3 +3752,21 @@ David 18 Apr 2007
sched/
sched_config.C,h
sample_work_generator.C
Rom 19 Apr 2007
- Fix a minor compile problem on 64-bit Windows platforms with the
call to SetTimer.
- fixes #80: Introduce the notion of an alternate platform for 64-bit
Windows clients, which can also run 32-bit Windows apps.
TODO: We'll need to refactor the whole platform section in the
scheduler request creation section so that it can handle
multiple alternate platforms and for Linux/Mac.
api/
windows_opengl.C
client/
client_state.C, .h
cpp.h
cs_scheduler.C

View File

@ -74,6 +74,7 @@ CLIENT_STATE::CLIENT_STATE() {
core_client_version.minor = BOINC_MINOR_VERSION;
core_client_version.release = BOINC_RELEASE;
platform_name = HOSTTYPE;
alt_platform_name = HOSTTYPE;
exit_after_app_start_secs = 0;
app_started = 0;
exit_before_upload = false;

View File

@ -157,6 +157,7 @@ public:
bool run_by_updater;
double now;
const char* platform_name;
const char* alt_platform_name;
bool initialized;
private:

View File

@ -21,6 +21,7 @@
#if defined(_WIN64) && defined(_M_X64)
#define HOSTTYPE "windows_x86_64"
#define HOSTTYPEALT "windows_intelx86"
#else
#define HOSTTYPE "windows_intelx86"
#endif

View File

@ -112,6 +112,11 @@ int CLIENT_STATE::make_scheduler_request(PROJECT* p) {
" <hostid>%d</hostid>\n"
" <rpc_seqno>%d</rpc_seqno>\n"
" <platform_name>%s</platform_name>\n"
#ifdef _WIN64
" <alternate_platform>\n"
" <name>%s</name>\n"
" </alternate_platform>\n"
#endif
" <core_client_major_version>%d</core_client_major_version>\n"
" <core_client_minor_version>%d</core_client_minor_version>\n"
" <core_client_release>%d</core_client_release>\n"
@ -125,6 +130,9 @@ int CLIENT_STATE::make_scheduler_request(PROJECT* p) {
p->hostid,
p->rpc_seqno,
p->anonymous_platform?"anonymous":platform_name,
#ifdef _WIN64
alt_platform_name,
#endif
core_client_version.major,
core_client_version.minor,
core_client_version.release,