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
1 changed files with 7 additions and 1 deletions

View File

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