Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: third_party/cython/src/Cython/Includes/cpython/pythread.pxd

Issue 385073004: Adding cython v0.20.2 in third-party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference cython dev list thread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2
3 cdef extern from "pythread.h":
4
5 ctypedef void *PyThread_type_lock
6 ctypedef void *PyThread_type_sema
7
8 void PyThread_init_thread()
9 long PyThread_start_new_thread(void (*)(void *), void *)
10 void PyThread_exit_thread()
11 long PyThread_get_thread_ident()
12
13 PyThread_type_lock PyThread_allocate_lock()
14 void PyThread_free_lock(PyThread_type_lock)
15 int PyThread_acquire_lock(PyThread_type_lock, int mode) nogil
16 void PyThread_release_lock(PyThread_type_lock) nogil
17
18 enum:
19 # 'mode' in PyThread_acquire_lock()
20 WAIT_LOCK # 1
21 NOWAIT_LOCK # 0
22
23 ctypedef enum PyLockStatus:
24 # return values of PyThread_acquire_lock() in CPython 3.2+
25 PY_LOCK_FAILURE = 0
26 PY_LOCK_ACQUIRED = 1
27 PY_LOCK_INTR
28
29 size_t PyThread_get_stacksize()
30 int PyThread_set_stacksize(size_t)
31
32 # Thread Local Storage (TLS) API
33 int PyThread_create_key()
34 void PyThread_delete_key(int)
35 int PyThread_set_key_value(int, void *)
36 void * PyThread_get_key_value(int)
37 void PyThread_delete_key_value(int key)
38
39 # Cleanup after a fork
40 void PyThread_ReInitTLS()
OLDNEW
« no previous file with comments | « third_party/cython/src/Cython/Includes/cpython/pystate.pxd ('k') | third_party/cython/src/Cython/Includes/cpython/ref.pxd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698