mirror of https://github.com/BOINC/boinc.git
MGR: Bug fixes for Linux
svn path=/trunk/boinc/; revision=18927
This commit is contained in:
parent
f989eba75a
commit
42fbc64cce
|
@ -250,7 +250,7 @@ void BOINC_Condition::Broadcast() {
|
||||||
// How often to check for events when minimized and waiting for Demand RPC
|
// How often to check for events when minimized and waiting for Demand RPC
|
||||||
#define DELAY_WHEN_MINIMIZED 500
|
#define DELAY_WHEN_MINIMIZED 500
|
||||||
// Delay in milliseconds to allow thread to exit before killing it
|
// 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() {
|
ASYNC_RPC_REQUEST::ASYNC_RPC_REQUEST() {
|
||||||
clear();
|
clear();
|
||||||
|
@ -354,7 +354,7 @@ void *RPCThread::Entry() {
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
// On Mac / Unix / Linux, set "C" locale for this thread only
|
// 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);
|
uselocale(RPC_Thread_Locale);
|
||||||
}
|
}
|
||||||
#endif // ifndef __WXMSW__
|
#endif // ifndef __WXMSW__
|
||||||
|
@ -384,7 +384,7 @@ void *RPCThread::Entry() {
|
||||||
// Tell CMainDocument that thread has gracefully ended
|
// Tell CMainDocument that thread has gracefully ended
|
||||||
// We do this here because OnExit() is not called on Windows
|
// We do this here because OnExit() is not called on Windows
|
||||||
m_pDoc->m_RPCThread = NULL;
|
m_pDoc->m_RPCThread = NULL;
|
||||||
Exit();
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
current_request = m_pDoc->GetCurrentRPCRequest();
|
current_request = m_pDoc->GetCurrentRPCRequest();
|
||||||
|
|
Loading…
Reference in New Issue