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:
Robert Roebling 2003-09-10 14:28:29 +00:00
parent fc4fb52856
commit 863136dea6
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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