Commit 7fd33564 authored by Stefan Behnel's avatar Stefan Behnel

Add some comments on potential improvements.

parent f1afb30f
......@@ -70,6 +70,9 @@ cdef class CreateClosureClasses(CythonTransform):
cdef create_class_from_scope(self, node, target_module_scope, inner_node=*)
cdef find_entries_used_in_closures(self, node)
#cdef class InjectGilHandling(VisitorTransform, SkipDeclarations):
# cdef bint nogil
cdef class GilCheck(VisitorTransform):
cdef list env_stack
cdef bint nogil
......
......@@ -2795,6 +2795,10 @@ class InjectGilHandling(VisitorTransform, SkipDeclarations):
node = Nodes.GILStatNode(node.pos, state='gil', body=node)
return node
# further candidates:
# def visit_AssertStatNode(self, node):
# def visit_ReraiseStatNode(self, node):
# nogil tracking
def visit_GILStatNode(self, node):
......
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