projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07feb4
)
declare PyThread_acquire_lock and PyThread_release_lock as nogil
author
Stefan Behnel
<scoder@users.berlios.de>
Tue, 13 Jul 2010 16:53:55 +0000
(18:53 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Tue, 13 Jul 2010 16:53:55 +0000
(18:53 +0200)
Cython/Includes/cpython/pythread.pxd
patch
|
blob
|
history
diff --git
a/Cython/Includes/cpython/pythread.pxd
b/Cython/Includes/cpython/pythread.pxd
index 4721cd3dfa0c19b053e96f6966a2510289771ecd..baa5b05840debe6b5096dc21f1e2d5b35074404e 100644
(file)
--- 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)