Test if G_threads already are initialized.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fc4fb52856
commit
863136dea6
@ -584,7 +584,8 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
|
||||
}
|
||||
else
|
||||
{
|
||||
g_thread_init(NULL);
|
||||
if (!g_thread_supported())
|
||||
g_thread_init(NULL);
|
||||
}
|
||||
#endif // wxUSE_THREADS
|
||||
|
||||
|
@ -584,7 +584,8 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
|
||||
}
|
||||
else
|
||||
{
|
||||
g_thread_init(NULL);
|
||||
if (!g_thread_supported())
|
||||
g_thread_init(NULL);
|
||||
}
|
||||
#endif // wxUSE_THREADS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user