Kaydet (Commit) b53355ad authored tarafından Jack Jansen's avatar Jack Jansen

Added support for (optionally) bracketing calls with

Py_{BEGIN,END}_ALLOW_THREADS.
üst f3f231f6
......@@ -216,6 +216,12 @@ class FunctionGenerator(BaseFunctionGenerator):
def precheck(self):
pass
def beginallowthreads(self):
pass
def endallowthreads(self):
pass
def callit(self):
args = ""
s = "%s%s(" % (self.getrvforcallit(), self.callname)
......@@ -226,8 +232,10 @@ class FunctionGenerator(BaseFunctionGenerator):
s = arg.passArgument()
if args: s = sep + s
args = args + s
self.beginallowthreads()
Output("%s%s(%s);",
self.getrvforcallit(), self.callname, args)
self.endallowthreads()
def getrvforcallit(self):
if self.rv:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment