Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/mingw32/Python27/include/pythread.h @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | 2a2c65a20a8b |
children |
rev | line source |
---|---|
Chris@87 | 1 |
Chris@87 | 2 #ifndef Py_PYTHREAD_H |
Chris@87 | 3 #define Py_PYTHREAD_H |
Chris@87 | 4 |
Chris@87 | 5 typedef void *PyThread_type_lock; |
Chris@87 | 6 typedef void *PyThread_type_sema; |
Chris@87 | 7 |
Chris@87 | 8 #ifdef __cplusplus |
Chris@87 | 9 extern "C" { |
Chris@87 | 10 #endif |
Chris@87 | 11 |
Chris@87 | 12 PyAPI_FUNC(void) PyThread_init_thread(void); |
Chris@87 | 13 PyAPI_FUNC(long) PyThread_start_new_thread(void (*)(void *), void *); |
Chris@87 | 14 PyAPI_FUNC(void) PyThread_exit_thread(void); |
Chris@87 | 15 PyAPI_FUNC(long) PyThread_get_thread_ident(void); |
Chris@87 | 16 |
Chris@87 | 17 PyAPI_FUNC(PyThread_type_lock) PyThread_allocate_lock(void); |
Chris@87 | 18 PyAPI_FUNC(void) PyThread_free_lock(PyThread_type_lock); |
Chris@87 | 19 PyAPI_FUNC(int) PyThread_acquire_lock(PyThread_type_lock, int); |
Chris@87 | 20 #define WAIT_LOCK 1 |
Chris@87 | 21 #define NOWAIT_LOCK 0 |
Chris@87 | 22 PyAPI_FUNC(void) PyThread_release_lock(PyThread_type_lock); |
Chris@87 | 23 |
Chris@87 | 24 PyAPI_FUNC(size_t) PyThread_get_stacksize(void); |
Chris@87 | 25 PyAPI_FUNC(int) PyThread_set_stacksize(size_t); |
Chris@87 | 26 |
Chris@87 | 27 /* Thread Local Storage (TLS) API */ |
Chris@87 | 28 PyAPI_FUNC(int) PyThread_create_key(void); |
Chris@87 | 29 PyAPI_FUNC(void) PyThread_delete_key(int); |
Chris@87 | 30 PyAPI_FUNC(int) PyThread_set_key_value(int, void *); |
Chris@87 | 31 PyAPI_FUNC(void *) PyThread_get_key_value(int); |
Chris@87 | 32 PyAPI_FUNC(void) PyThread_delete_key_value(int key); |
Chris@87 | 33 |
Chris@87 | 34 /* Cleanup after a fork */ |
Chris@87 | 35 PyAPI_FUNC(void) PyThread_ReInitTLS(void); |
Chris@87 | 36 |
Chris@87 | 37 #ifdef __cplusplus |
Chris@87 | 38 } |
Chris@87 | 39 #endif |
Chris@87 | 40 |
Chris@87 | 41 #endif /* !Py_PYTHREAD_H */ |