summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/modules/IcePy/Connection.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/modules/IcePy/Connection.cpp b/py/modules/IcePy/Connection.cpp
index 46dd3134c93..8b13060bdac 100644
--- a/py/modules/IcePy/Connection.cpp
+++ b/py/modules/IcePy/Connection.cpp
@@ -98,6 +98,7 @@ connectionClose(ConnectionObject* self, PyObject* args)
assert(self->connection);
try
{
+ AllowThreads allowThreads; // Release Python's global interpreter lock during blocking invocations.
(*self->connection)->close(force > 0);
}
catch(const Ice::Exception& ex)
@@ -209,6 +210,7 @@ connectionFlushBatchRequests(ConnectionObject* self)
assert(self->connection);
try
{
+ AllowThreads allowThreads; // Release Python's global interpreter lock during remote invocations.
(*self->connection)->flushBatchRequests();
}
catch(const Ice::Exception& ex)