Mercurial > cpython-lru_cache-weakref
diff Include/thread.h @ 5405:b7871ca930ad legacy-trunk
Massive changes for separate thread state management.
All per-thread globals are moved into a struct which is manipulated
separately.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 05 May 1997 20:56:21 +0000 |
| parents | 52f3dc41f6c4 |
| children | bd47ee068b83 |
line wrap: on
line diff
--- a/Include/thread.h Mon May 05 20:53:25 1997 +0000 +++ b/Include/thread.h Mon May 05 20:56:21 1997 +0000 @@ -35,6 +35,10 @@ #define up_sema PyThread_up_sema #define exit_prog PyThread_exit_prog #define _exit_prog PyThread__exit_prog +#define create_key PyThread_create_key +#define delete_key PyThread_delete_key +#define get_key_value PyThread_get_key_value +#define set_key_value PyThread_set_key_value void init_thread Py_PROTO((void)); @@ -62,6 +66,11 @@ void _exit_prog Py_PROTO((int)); #endif +int create_key Py_PROTO((void)); +void delete_key Py_PROTO((int)); +int set_key_value Py_PROTO((int, void *)); +void * get_key_value Py_PROTO((int)); + #ifdef __cplusplus } #endif
