Skip to content

Commit

Permalink
Added support for (optionally) bracketing calls with
Browse files Browse the repository at this point in the history
Py_{BEGIN,END}_ALLOW_THREADS.
  • Loading branch information
jackjansen committed Sep 20, 2005
1 parent f3f231f commit b53355a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Tools/bgen/bgen/bgenGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ def getargsFormatArgs(self, sep):
def precheck(self):
pass

def beginallowthreads(self):
pass

def endallowthreads(self):
pass

def callit(self):
args = ""
s = "%s%s(" % (self.getrvforcallit(), self.callname)
Expand All @@ -226,8 +232,10 @@ def callit(self):
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:
Expand Down

0 comments on commit b53355a

Please sign in to comment.