summaryrefslogtreecommitdiff
path: root/cpp/bindings/qpid/python/python.i
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/bindings/qpid/python/python.i')
-rw-r--r--cpp/bindings/qpid/python/python.i4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/bindings/qpid/python/python.i b/cpp/bindings/qpid/python/python.i
index 690ce57d85..85dc745783 100644
--- a/cpp/bindings/qpid/python/python.i
+++ b/cpp/bindings/qpid/python/python.i
@@ -17,14 +17,16 @@
* under the License.
*/
-%module qpidw
+%module cqpid
%include "std_string.i"
%include "../../swig_python_typemaps.i"
/* Define the general-purpose exception handling */
%exception {
try {
+ Py_BEGIN_ALLOW_THREADS
$action
+ Py_END_ALLOW_THREADS
}
catch (qpid::messaging::MessagingException& mex) {
PyErr_SetString(PyExc_RuntimeError, mex.what());