From b595d7af76fff193b7fd7f3120c2ee850ea87b48 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 29 Sep 2008 17:29:03 +0000 Subject: [PATCH] build break fixes and some cleanup svn path=/trunk/boinc/; revision=16088 --- clientgui/AsyncRPC.cpp | 15 +++++++++------ clientgui/AsyncRPC.h | 16 +++++----------- clientgui/{browser.C => browser.cpp} | 0 clientgui/stdwx.h | 4 +--- win_build/installerv2/BOINC.ism | Bin 211404 -> 211404 bytes win_build/installerv2/BOINCx64.ism | Bin 211404 -> 211404 bytes 6 files changed, 15 insertions(+), 20 deletions(-) rename clientgui/{browser.C => browser.cpp} (100%) diff --git a/clientgui/AsyncRPC.cpp b/clientgui/AsyncRPC.cpp index 9216e51d80..0aebba35df 100755 --- a/clientgui/AsyncRPC.cpp +++ b/clientgui/AsyncRPC.cpp @@ -19,14 +19,13 @@ #pragma implementation "AsyncRPC.h" #endif -#include - #include "stdwx.h" #include "BOINCGUIApp.h" #include "MainDocument.h" #include "AsyncRPC.h" #include "BOINCBaseFrame.h" + // Delay in milliseconds before showing AsyncRPCDlg #define RPC_WAIT_DLG_DELAY 1500 @@ -41,13 +40,13 @@ ASYNC_RPC_REQUEST::~ASYNC_RPC_REQUEST() { void ASYNC_RPC_REQUEST::clear() { + rpcType = (ASYNC_RPC_TYPE) 0; which_rpc = (RPC_SELECTOR) 0; - arg1 = NULL; exchangeBuf = NULL; + arg1 = NULL; arg2 = NULL; arg3 = NULL; arg4 = NULL; - rpcType = (ASYNC_RPC_TYPE) 0; completionTime = NULL; resultPtr = NULL; retval = 0; @@ -133,13 +132,13 @@ void *RPCThread::Entry() { continue; } - if (! m_Doc->IsConnected()) { + if (! m_Doc->IsConnected()) { Yield(); } retval = ProcessRPCRequest(); wxPostEvent( wxTheApp, RPC_done_event ); - } + } #ifndef __WXMSW__ // Deadlocks on Windows @@ -147,6 +146,7 @@ void *RPCThread::Entry() { // manager shutdown due to a rare race condition m_Doc->m_critsect.Enter(); m_Doc->m_critsect.Leave(); + #endif // !!__WXMSW__ // Deadlocks on Windows return NULL; @@ -202,7 +202,9 @@ int RPCThread::ProcessRPCRequest() { break; case RPC_GET_PROJECT_STATUS1: if (current_request->exchangeBuf) { + ((CC_STATE*)(current_request->arg1))->projects.clear(); + int n = (int)((CC_STATE*)(current_request->exchangeBuf))->projects.size(); for (int i=0; imaster_url = ((CC_STATE*)(current_request->exchangeBuf))->projects[i]->master_url; ((CC_STATE*)(current_request->arg1))->projects.push_back(p); } + } retval = (m_Doc->rpcClient).get_project_status(*(CC_STATE*)(current_request->arg1)); break; diff --git a/clientgui/AsyncRPC.h b/clientgui/AsyncRPC.h index 85eba4e85f..98bf34bd16 100644 --- a/clientgui/AsyncRPC.h +++ b/clientgui/AsyncRPC.h @@ -22,12 +22,6 @@ #pragma interface "AsyncRPC.cpp" #endif -#include "wx/thread.h" - -//#include "BOINCBaseFrame.h" - -//#include "common_defs.h" -//#include "gui_rpc_client.h" class CBOINCGUIApp; // Forward declaration class CMainDocument; // Forward declaration @@ -155,11 +149,11 @@ public: AsyncRPC(CMainDocument *pDoc); ~AsyncRPC(); - int RPC_Wait( - RPC_SELECTOR which_rpc, void* arg1 = NULL, void* - arg2 = NULL, void* arg3 = NULL, void* arg4 = NULL, - bool hasPriority = false - ); + int RPC_Wait( + RPC_SELECTOR which_rpc, void* arg1 = NULL, void* + arg2 = NULL, void* arg3 = NULL, void* arg4 = NULL, + bool hasPriority = false + ); // Manager must do all RPC data transfers through AsyncRPC calls, so // this class must have methods corresponding to all RPC_CLIENT data diff --git a/clientgui/browser.C b/clientgui/browser.cpp similarity index 100% rename from clientgui/browser.C rename to clientgui/browser.cpp diff --git a/clientgui/stdwx.h b/clientgui/stdwx.h index 89e4ea0f53..e13ac22065 100644 --- a/clientgui/stdwx.h +++ b/clientgui/stdwx.h @@ -107,10 +107,8 @@ #include #include #include - -#if wxCHECK_VERSION(2,8,0) +#include #include -#endif #ifdef _WIN32 diff --git a/win_build/installerv2/BOINC.ism b/win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