MGR: Bug fixes for Linux

svn path=/trunk/boinc/; revision=18927
This commit is contained in:
Charlie Fenton 2009-08-27 10:46:54 +00:00
parent f989eba75a
commit 42fbc64cce
1 changed files with 3 additions and 3 deletions

View File

@ -250,7 +250,7 @@ void BOINC_Condition::Broadcast() {
// How often to check for events when minimized and waiting for Demand RPC
#define DELAY_WHEN_MINIMIZED 500
// Delay in milliseconds to allow thread to exit before killing it
#define RPC_KILL_DELAY 100
#define RPC_KILL_DELAY 2000
ASYNC_RPC_REQUEST::ASYNC_RPC_REQUEST() {
clear();
@ -354,7 +354,7 @@ void *RPCThread::Entry() {
#endif
{
// On Mac / Unix / Linux, set "C" locale for this thread only
RPC_Thread_Locale = newlocale(LC_ALL_MASK, NULL, NULL);
RPC_Thread_Locale = newlocale(LC_ALL_MASK, "C", NULL);
uselocale(RPC_Thread_Locale);
}
#endif // ifndef __WXMSW__
@ -384,7 +384,7 @@ void *RPCThread::Entry() {
// Tell CMainDocument that thread has gracefully ended
// We do this here because OnExit() is not called on Windows
m_pDoc->m_RPCThread = NULL;
Exit();
return 0;
}
current_request = m_pDoc->GetCurrentRPCRequest();