Commit dcb7ee06 authored by Stefan Behnel's avatar Stefan Behnel

test for nogil functions

parent f10294d7
__doc__ = u"""
>>> test(5)
89
>>> test(11)
95
"""
def test(int x):
with nogil:
f(x)
x = g(x)
return x
cdef void f(int x) nogil:
cdef int y
y = x + 42
g(y)
cdef int g(int x) nogil:
cdef int y
y = x + 42
return y
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