mirror of https://github.com/BOINC/boinc.git
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:
parent
f198d8c78e
commit
ac6974b62b
|
@ -510,7 +510,7 @@ void win_graphics_event_loop() {
|
||||||
//
|
//
|
||||||
reg_win_class();
|
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()) {
|
if (boinc_is_standalone()) {
|
||||||
set_mode(MODE_WINDOW);
|
set_mode(MODE_WINDOW);
|
||||||
|
|
|
@ -3752,3 +3752,21 @@ David 18 Apr 2007
|
||||||
sched/
|
sched/
|
||||||
sched_config.C,h
|
sched_config.C,h
|
||||||
sample_work_generator.C
|
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
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,7 @@ CLIENT_STATE::CLIENT_STATE() {
|
||||||
core_client_version.minor = BOINC_MINOR_VERSION;
|
core_client_version.minor = BOINC_MINOR_VERSION;
|
||||||
core_client_version.release = BOINC_RELEASE;
|
core_client_version.release = BOINC_RELEASE;
|
||||||
platform_name = HOSTTYPE;
|
platform_name = HOSTTYPE;
|
||||||
|
alt_platform_name = HOSTTYPE;
|
||||||
exit_after_app_start_secs = 0;
|
exit_after_app_start_secs = 0;
|
||||||
app_started = 0;
|
app_started = 0;
|
||||||
exit_before_upload = false;
|
exit_before_upload = false;
|
||||||
|
|
|
@ -157,6 +157,7 @@ public:
|
||||||
bool run_by_updater;
|
bool run_by_updater;
|
||||||
double now;
|
double now;
|
||||||
const char* platform_name;
|
const char* platform_name;
|
||||||
|
const char* alt_platform_name;
|
||||||
bool initialized;
|
bool initialized;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
#if defined(_WIN32) && !defined(__CYGWIN32__)
|
#if defined(_WIN32) && !defined(__CYGWIN32__)
|
||||||
|
|
||||||
#if defined(_WIN64) && defined(_M_X64)
|
#if defined(_WIN64) && defined(_M_X64)
|
||||||
#define HOSTTYPE "windows_x86_64"
|
#define HOSTTYPE "windows_x86_64"
|
||||||
|
#define HOSTTYPEALT "windows_intelx86"
|
||||||
#else
|
#else
|
||||||
#define HOSTTYPE "windows_intelx86"
|
#define HOSTTYPE "windows_intelx86"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -112,6 +112,11 @@ int CLIENT_STATE::make_scheduler_request(PROJECT* p) {
|
||||||
" <hostid>%d</hostid>\n"
|
" <hostid>%d</hostid>\n"
|
||||||
" <rpc_seqno>%d</rpc_seqno>\n"
|
" <rpc_seqno>%d</rpc_seqno>\n"
|
||||||
" <platform_name>%s</platform_name>\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_major_version>%d</core_client_major_version>\n"
|
||||||
" <core_client_minor_version>%d</core_client_minor_version>\n"
|
" <core_client_minor_version>%d</core_client_minor_version>\n"
|
||||||
" <core_client_release>%d</core_client_release>\n"
|
" <core_client_release>%d</core_client_release>\n"
|
||||||
|
@ -125,6 +130,9 @@ int CLIENT_STATE::make_scheduler_request(PROJECT* p) {
|
||||||
p->hostid,
|
p->hostid,
|
||||||
p->rpc_seqno,
|
p->rpc_seqno,
|
||||||
p->anonymous_platform?"anonymous":platform_name,
|
p->anonymous_platform?"anonymous":platform_name,
|
||||||
|
#ifdef _WIN64
|
||||||
|
alt_platform_name,
|
||||||
|
#endif
|
||||||
core_client_version.major,
|
core_client_version.major,
|
||||||
core_client_version.minor,
|
core_client_version.minor,
|
||||||
core_client_version.release,
|
core_client_version.release,
|
||||||
|
|
Loading…
Reference in New Issue