git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24256
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
PyEval_InitThreads();
wxPyTStates = new wxPyThreadStateArray;
wxPyTMutex = new wxMutex;
PyEval_InitThreads();
wxPyTStates = new wxPyThreadStateArray;
wxPyTMutex = new wxMutex;
+
+ // Save the current (main) thread state in our array
+ PyThreadState* tstate = wxPyBeginAllowThreads();
+ wxPyEndAllowThreads(tstate);
#endif
// Ensure that the build options in the DLL (or whatever) match this build
#endif
// Ensure that the build options in the DLL (or whatever) match this build