Allow cppclasses to be declared nogil.
authorJohn Stumpo <stump@jstump.com>
Sun, 14 Apr 2013 18:52:07 +0000 (20:52 +0200)
committerJohn Stumpo <stump@jstump.com>
Sun, 14 Apr 2013 18:52:07 +0000 (20:52 +0200)
commitf0e32c2e4ade97f0b8fa95653f1c7710255d438a
treebc80413921e5df1b6f23232b8749ad2c3ac411ff
parentaa012cc86b48119bfff36c8fac7702ee0fe29b38
Allow cppclasses to be declared nogil.
Doing so just makes all methods implicitly nogil. This also makes nogil
on a cdef extern from statement do the right thing to cppclasses (and
their methods) contained inside.
---
 Cython/Compiler/Parsing.py  |    3 ++-
 tests/compile/cpp_nogil.h   |    9 +++++++++
 tests/compile/cpp_nogil.pyx |   18 ++++++++++++++++++
 3 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 tests/compile/cpp_nogil.h
 create mode 100644 tests/compile/cpp_nogil.pyx
Cython/Compiler/Parsing.py
tests/compile/cpp_nogil.h [new file with mode: 0644]
tests/compile/cpp_nogil.pyx [new file with mode: 0644]