diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2006-10-24 20:28:16 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2006-10-24 20:28:16 +0000 |
commit | 54db0825da704d121264647798fdd829a3ade6e2 (patch) | |
tree | 6b8a35f79a855041cdf8c3b57156a566516d149d /generator.py | |
parent | 6606a75667802eaf7d956fb6a61ffaeaece9385d (diff) | |
download | libvirt-python-split-54db0825da704d121264647798fdd829a3ade6e2.tar.gz libvirt-python-split-54db0825da704d121264647798fdd829a3ade6e2.tar.xz libvirt-python-split-54db0825da704d121264647798fdd829a3ade6e2.zip |
Make python bindings threaded, by dropping/acquiring Python GIL where needed
Diffstat (limited to 'generator.py')
-rwxr-xr-x | generator.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generator.py b/generator.py index 63f7635..e973db1 100755 --- a/generator.py +++ b/generator.py @@ -421,8 +421,10 @@ def print_function_wrapper(name, output, export, include): output.write(" return(NULL);\n") if c_convert != "": output.write(c_convert) - - output.write(c_call) + + output.write("LIBVIRT_BEGIN_ALLOW_THREADS;\n"); + output.write(c_call); + output.write("LIBVIRT_END_ALLOW_THREADS;\n"); output.write(ret_convert) output.write("}\n\n") if cond != None and cond != "": |