Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
8966bfba
Commit
8966bfba
authored
Apr 10, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add PyLockStatus declaration (Py3.2+) to cpython/pthread.pxd
parent
6d4efb6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Cython/Includes/cpython/pythread.pxd
Cython/Includes/cpython/pythread.pxd
+8
-1
No files found.
Cython/Includes/cpython/pythread.pxd
View file @
8966bfba
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment