Aquire the GIL before raising the NotImplementedError exception
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -145,7 +145,8 @@ void wxPyEndBlockThreads();
|
||||
|
||||
#endif // wxPyUSE_EXPORTED_API
|
||||
|
||||
#define wxPyBLOCK_THREADS(stmt) wxPyBeginBlockThreads(); stmt; wxPyEndBlockThreads()
|
||||
#define wxPyBLOCK_THREADS(stmt) { wxPyBeginBlockThreads(); stmt; wxPyEndBlockThreads(); }
|
||||
#define wxPyRaiseNotImplemented() wxPyBLOCK_THREADS(PyErr_SetNone(PyExc_NotImplementedError))
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// These are helpers used by the typemaps
|
||||
|
Reference in New Issue
Block a user