Make python bindings threaded, by dropping/acquiring Python GIL where needed

This commit is contained in:
Daniel P. Berrange
2006-10-24 20:28:16 +00:00
parent 297a77f6da
commit 9e5645393e
4 changed files with 87 additions and 3 deletions
+4 -2
View File
@@ -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 != "":