Commit 8966bfba authored by Stefan Behnel's avatar Stefan Behnel

add PyLockStatus declaration (Py3.2+) to cpython/pthread.pxd

parent 6d4efb6e
......@@ -15,10 +15,17 @@ cdef extern from "pythread.h":
int PyThread_acquire_lock(PyThread_type_lock, int mode) nogil
void PyThread_release_lock(PyThread_type_lock) nogil
enum: # 'mode' in PyThread_acquire_lock
enum:
# 'mode' in PyThread_acquire_lock()
WAIT_LOCK # 1
NOWAIT_LOCK # 0
ctypedef enum PyLockStatus:
# return values of PyThread_acquire_lock() in CPython 3.2+
PY_LOCK_FAILURE = 0
PY_LOCK_ACQUIRED = 1
PY_LOCK_INTR
size_t PyThread_get_stacksize()
int PyThread_set_stacksize(size_t)
......
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