X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f4e928794167715f19a3021d62b7c4f77611694..8dba8632c5bcd64724e2e9e2d40e295555a0cb86:/wxPython/src/my_typemaps.i diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 249881280c..d6b99441ef 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -12,12 +12,12 @@ //--------------------------------------------------------------------------- -// Tell SWIG to wrap all the wrappers with Python's thread macros +// Tell SWIG to wrap all the wrappers with our thread protection %except(python) { - wxPy_BEGIN_ALLOW_THREADS; + PyThreadState* __tstate = wxPyBeginAllowThreads(); $function - wxPy_END_ALLOW_THREADS; + wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) return NULL; }