From 54db0825da704d121264647798fdd829a3ade6e2 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 24 Oct 2006 20:28:16 +0000 Subject: Make python bindings threaded, by dropping/acquiring Python GIL where needed --- generator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'generator.py') 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 != "": -- cgit