diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-04-06 23:02:53 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:07 -0300 |
commit | fab79738ac6644f065740ac58694d2c58ee3a9f0 (patch) | |
tree | dc0fec83d245d3e5475684c79d9e613ceebdfe12 /PySide/QtXml | |
parent | cf905e46616b46e811925926a231bb8fa6e1ce12 (diff) |
Updated type system files to use the new %BEGIN_ALLOW_THREADS and %END_ALLOW_THREADS variables.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtXml')
-rw-r--r-- | PySide/QtXml/typesystem_xml.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/PySide/QtXml/typesystem_xml.xml b/PySide/QtXml/typesystem_xml.xml index 9d8fb1fb8..1bf07debb 100644 --- a/PySide/QtXml/typesystem_xml.xml +++ b/PySide/QtXml/typesystem_xml.xml @@ -37,9 +37,9 @@ int _errorLine_ = 0; int _errorColumn_ = 0; - PyThreadState* _save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS + %BEGIN_ALLOW_THREADS bool _ret_ = %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &_errorMsg_, &_errorLine_, &_errorColumn_); - PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS + %END_ALLOW_THREADS %PYARG_0 = Shiboken::makeTuple(_ret_, _errorMsg_, _errorLine_, _errorColumn_); </template> @@ -271,9 +271,9 @@ <inject-code class="target" position="end"> QXmlInputSource* _qxmlinputsource_arg_ = 0; - PyThreadState* _save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS + %BEGIN_ALLOW_THREADS %RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(%1, %2, _qxmlinputsource_arg_); - PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS + %END_ALLOW_THREADS %PYARG_0 = Shiboken::makeTuple(%0, _qxmlinputsource_arg_); </inject-code> @@ -297,9 +297,9 @@ </modify-argument> <inject-code class="target" position="end"> QXmlInputSource* _qxmlinputsource_arg_ = 0; - PyThreadState* _save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS + %BEGIN_ALLOW_THREADS %RETURN_TYPE %0 = %CPPSELF.%TYPE::%FUNCTION_NAME(%1, %2, _qxmlinputsource_arg_); - PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS + %END_ALLOW_THREADS %PYARG_0 = Shiboken::makeTuple(%0, _qxmlinputsource_arg_); </inject-code> </modify-function> |