Init X multithread support on linux.

Should fix some linux crash issues


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4479 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-10-29 21:12:11 +00:00
parent af921d56d0
commit 9d57502f1a

View File

@ -23,6 +23,10 @@
#include <sys/param.h> #include <sys/param.h>
#endif #endif
#ifdef __linux__
#include <X11/Xlib.h>
#endif
#include "Common.h" // Common #include "Common.h" // Common
#include "CPUDetect.h" #include "CPUDetect.h"
#include "IniFile.h" #include "IniFile.h"
@ -119,7 +123,9 @@ bool DolphinApp::OnInit()
RegisterMsgAlertHandler(&wxMsgAlert); RegisterMsgAlertHandler(&wxMsgAlert);
#endif #endif
#if defined __linux__
XInitThreads();
#endif
// "ExtendedTrace" looks freakin dangerous!!! // "ExtendedTrace" looks freakin dangerous!!!
#ifdef _WIN32 #ifdef _WIN32
EXTENDEDTRACEINITIALIZE("."); EXTENDEDTRACEINITIALIZE(".");