mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
Add and use the wxPyThreadBlocker class.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,7 +40,7 @@ void wxPyCallback::EventThunker(wxEvent& event) {
|
||||
PyObject* tuple;
|
||||
bool checkSkip = false;
|
||||
|
||||
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
||||
wxPyThreadBlocker blocker;
|
||||
wxString className = event.GetClassInfo()->GetClassName();
|
||||
arg = wxPyConstructObject((void*)&event, className);
|
||||
|
||||
@@ -59,5 +59,4 @@ void wxPyCallback::EventThunker(wxEvent& event) {
|
||||
}
|
||||
Py_DECREF(tuple);
|
||||
}
|
||||
wxPyEndBlockThreads(blocked);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user