diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-04-18 16:56:08 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-04-18 20:21:38 +0100 |
commit | 08dc4a87b92435678780e9c49fe3bc1e7465d99f (patch) | |
tree | a84edb51063b254a45a35e175b48bd7a86977a2f /po/pl.po | |
parent | a3cce465570bf192e993a67feedfbab7e662c75a (diff) | |
download | libguestfs-08dc4a87b92435678780e9c49fe3bc1e7465d99f.tar.gz libguestfs-08dc4a87b92435678780e9c49fe3bc1e7465d99f.tar.xz libguestfs-08dc4a87b92435678780e9c49fe3bc1e7465d99f.zip |
python: Release Python GIL while running libguestfs calls.
Release the Python global interpreter lock while running libguestfs
calls.
We don't release it around guestfs_create() because that is a short
call that just allocates memory. We do release it around
guestfs_close() since that is a potentially long-running (it can call
wait(2) amongst other things). We also release it around all the
other generated Python calls.
We don't yet support callbacks into Python code (ie. the new event
API). But when we do in future, we will need to also handle the GIL
around those callbacks.
This code is adapted from libvirt's python/typewrappers.h. Thanks to
Dan Berrange for showing us how to do this properly.
Diffstat (limited to 'po/pl.po')
0 files changed, 0 insertions, 0 deletions