Save the initial tstate during initialization
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b434e3f098
commit
098d1f0c65
@ -362,6 +362,10 @@ void __wxPreStart(PyObject* moduleDict)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user