summaryrefslogtreecommitdiffstats
path: root/po-docs/libguestfs-docs.pot
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-04-18 16:56:08 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-04-18 22:23:33 +0100
commit76435db1adc4023a76d79c25d47a761f6ea47474 (patch)
treed9f98836b0570b8bc07c456b8b310663892d2f1f /po-docs/libguestfs-docs.pot
parent5a9d47dae14866c4c052d29a5c0aa676f0c1ed94 (diff)
downloadlibguestfs-76435db1adc4023a76d79c25d47a761f6ea47474.tar.gz
libguestfs-76435db1adc4023a76d79c25d47a761f6ea47474.tar.xz
libguestfs-76435db1adc4023a76d79c25d47a761f6ea47474.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. (cherry picked from commit 08dc4a87b92435678780e9c49fe3bc1e7465d99f)
Diffstat (limited to 'po-docs/libguestfs-docs.pot')
0 files changed, 0 insertions, 0 deletions