[pytango] 02/25: Release GIL in DeviceProxy constructor
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:17:15 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v8.1.9
in repository pytango.
commit d531c1a04202f2a2e9631c8e5eaf7b7c590edc3c
Author: Jose Tiago Coutinho Macara <tiago.coutinho at esrf.fr>
Date: Tue Dec 1 09:12:19 2015 +0100
Release GIL in DeviceProxy constructor
---
src/boost/cpp/device_proxy.cpp | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/boost/cpp/device_proxy.cpp b/src/boost/cpp/device_proxy.cpp
index 08c5f03..7283748 100644
--- a/src/boost/cpp/device_proxy.cpp
+++ b/src/boost/cpp/device_proxy.cpp
@@ -375,12 +375,22 @@ namespace PyDeviceProxy
static boost::shared_ptr<Tango::DeviceProxy> makeDeviceProxy1(const std::string& name)
{
- return boost::shared_ptr<Tango::DeviceProxy>(new Tango::DeviceProxy(name.c_str()));
+ Tango::DeviceProxy* dp = NULL;
+ {
+ AutoPythonAllowThreads guard;
+ dp = new Tango::DeviceProxy(name.c_str());
+ }
+ return boost::shared_ptr<Tango::DeviceProxy>(dp);
}
static boost::shared_ptr<Tango::DeviceProxy> makeDeviceProxy2(const std::string& name, bool b)
{
- return boost::shared_ptr<Tango::DeviceProxy>(new Tango::DeviceProxy(name.c_str(), b));
+ Tango::DeviceProxy* dp = NULL;
+ {
+ AutoPythonAllowThreads guard;
+ dp = new Tango::DeviceProxy(name.c_str(), b);
+ }
+ return boost::shared_ptr<Tango::DeviceProxy>(dp);
}
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list