protect gs_allThreads with a mutex (modified patch 1518719)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-07-24 18:26:26 +00:00
parent ce6b371d14
commit c4d2397c26

View File

@@ -17961,13 +17961,7 @@ SWIGINTERN PyObject *_wrap_Grid_GetSelectedRows(PyObject *SWIGUNUSEDPARM(self),
if (PyErr_Occurred()) SWIG_fail; if (PyErr_Occurred()) SWIG_fail;
} }
{ {
resultobj = PyList_New(0); resultobj = wxArrayInt2PyList_helper(result);
size_t idx;
for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
PyList_Append(resultobj, val);
Py_DECREF(val);
}
} }
return resultobj; return resultobj;
fail: fail:
@@ -17997,13 +17991,7 @@ SWIGINTERN PyObject *_wrap_Grid_GetSelectedCols(PyObject *SWIGUNUSEDPARM(self),
if (PyErr_Occurred()) SWIG_fail; if (PyErr_Occurred()) SWIG_fail;
} }
{ {
resultobj = PyList_New(0); resultobj = wxArrayInt2PyList_helper(result);
size_t idx;
for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
PyList_Append(resultobj, val);
Py_DECREF(val);
}
} }
return resultobj; return resultobj;
fail: fail: