Commit 5d30153b authored by gsamain's avatar gsamain

Reflect logic change in the nogil tests

parent 77c9f1e1
......@@ -49,15 +49,15 @@ ccdef class SomeMemory:
cdef int a;
cdef double b;
ccdef void cinit(self, a, b):
cdef void cinit(self, a, b) nogil:
# self.a = a
# self.b = b
pass
ccdef void cdealloc(self):
cdef void cdealloc(self):
pass
ccdef void foo1(self):
cdef void foo1(self):
"""
It is possible to define native C/Cython methods
that release the GIL (cool...)
......@@ -82,7 +82,7 @@ ccdef class SomeMemory:
# cdef bar(): # it is currently impossible to release GIL
ccdef double bar1(): # yet this is what we would like to
cdef double bar1() nogil: # yet this is what we would like to
"""
This is a pure "cython method" which we would like to
be able to declare with nogil option but this requires
......@@ -94,7 +94,7 @@ ccdef double bar1(): # yet this is what we would like to
return o1.a
ccdef double bar2(): # yet this is what we would like to
cdef double bar2() nogil: # yet this is what we would like to
cdef SomeMemory o2 = SomeMemory(2, 2.0)
o2.foo2()
......
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