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_build/installerv2/BOINC.ism index 99215be989..a3fe43ca14 100644 Binary files a/win_build/installerv2/BOINC.ism and b/win_build/installerv2/BOINC.ism differ diff --git a/win_build/installerv2/BOINCx64.ism b/win_build/installerv2/BOINCx64.ism index f1a2bad16b..9097e3db41 100644 Binary files a/win_build/installerv2/BOINCx64.ism and b/win_build/installerv2/BOINCx64.ism differ