From: Stefan Behnel Date: Tue, 13 Jul 2010 16:53:55 +0000 (+0200) Subject: declare PyThread_acquire_lock and PyThread_release_lock as nogil X-Git-Tag: 0.13.beta0~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=50f32415490ab9f380e5a6c9d0ffd095b8becdff;p=cython.git declare PyThread_acquire_lock and PyThread_release_lock as nogil --- diff --git a/Cython/Includes/cpython/pythread.pxd b/Cython/Includes/cpython/pythread.pxd index 4721cd3d..baa5b058 100644 --- a/Cython/Includes/cpython/pythread.pxd +++ b/Cython/Includes/cpython/pythread.pxd @@ -12,14 +12,13 @@ cdef extern from "pythread.h": PyThread_type_lock PyThread_allocate_lock() void PyThread_free_lock(PyThread_type_lock) - int PyThread_acquire_lock(PyThread_type_lock, int mode) + int PyThread_acquire_lock(PyThread_type_lock, int mode) nogil + void PyThread_release_lock(PyThread_type_lock) nogil - enum: + enum: # 'mode' in PyThread_acquire_lock WAIT_LOCK # 1 NOWAIT_LOCK # 0 - void PyThread_release_lock(PyThread_type_lock) - size_t PyThread_get_stacksize() int PyThread_set_stacksize(size_t)