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:
@@ -362,6 +362,10 @@ void __wxPreStart(PyObject* moduleDict)
|
|||||||
PyEval_InitThreads();
|
PyEval_InitThreads();
|
||||||
wxPyTStates = new wxPyThreadStateArray;
|
wxPyTStates = new wxPyThreadStateArray;
|
||||||
wxPyTMutex = new wxMutex;
|
wxPyTMutex = new wxMutex;
|
||||||
|
|
||||||
|
// Save the current (main) thread state in our array
|
||||||
|
PyThreadState* tstate = wxPyBeginAllowThreads();
|
||||||
|
wxPyEndAllowThreads(tstate);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Ensure that the build options in the DLL (or whatever) match this build
|
// Ensure that the build options in the DLL (or whatever) match this build
|
||||||
|
Reference in New Issue
Block a user